Fixed many bugs.

This commit is contained in:
didier amyot committed 2018-06-24 17:16:44 -04:00
1 parent ad924ca5c7
commit 174319293c
10 files changed
+227 -94

No files matched your search

+3
View File
@@ -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)