Skip to content

Commit

Permalink
Quasiquote edits
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Feb 29, 2024
1 parent 58a4ffc commit ada3404
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions convex-core/src/main/cvx/convex/core.cvx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
(set! found true)
(set! ss (assoc ss i e))))
(recur (inc i) found ss))

(cond found ss nil) ;; end of loop
)))))

Expand Down
1 change: 0 additions & 1 deletion convex-core/src/test/java/convex/core/lang/CoreTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,6 @@ public void testSlice() {

assertEquals(Lists.of(2),eval("(slice (list 1 2) 1)"));

// TODO: slicing for sets
assertEquals(Sets.of(1,2),eval("(slice #{1 2} 0)"));
assertEquals(Sets.empty(),eval("(slice #{1 2} 1 1)"));

Expand Down

0 comments on commit ada3404

Please sign in to comment.