Fixed many bugs.
This commit is contained in:
1 parent
ad924ca5c7
commit
174319293c
10 files changed
+227
-94
No files matched your search
@@ -30,6 +30,9 @@
|
||||
(fact "drop"
|
||||
(drop 2 (sorted-list 1 2 3)) => (sorted-list 3)
|
||||
(drop 3 (sorted-list 1 2 3)) => (list))
|
||||
(fact "empty"
|
||||
(empty (sorted-list 2 3 4)) => (sorted-list)
|
||||
(into (empty (sorted-list-by #(- %2 %1) 2 3 4)) [20 30]) => (sorted-list-by #(- %2 %1) 20 30))
|
||||
(fact "reduce"
|
||||
(reduce + (sorted-list 1 2 3)) => 6
|
||||
(reduce + 10 (sorted-list 1 2 3)) => 16)
|
||||
|
||||
Reference in new issue
Block a user