From d30e324bcd9aab9faab8f9fea50582c514ed4289 Mon Sep 17 00:00:00 2001 From: Michael Perez Date: Thu, 14 Jan 2016 20:36:43 -0500 Subject: [PATCH] src/koans/21_partition.clj: correct meditation doc The meditation was misleading because calling `(partition-all 3 (range 5))` returns `((0 1 2) (3 4))` results in sequences having <=3 elements , not strictly less than. --- src/koans/21_partition.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/koans/21_partition.clj b/src/koans/21_partition.clj index 1a65620..309ba02 100644 --- a/src/koans/21_partition.clj +++ b/src/koans/21_partition.clj @@ -8,7 +8,7 @@ "But watch out if there are not enough elements to form n sequences" (= '(__) (partition 3 [:a :b :c :d :e])) - "You can use partition-all to also get partitions with less than n elements" + "You can use partition-all to also get partitions with less or equal to n elements" (= __ (partition-all 3 (range 5))) "If you need to, you can start each sequence with an offset"