Skip to content

Commit

Permalink
Emphasize the leftovers included by partition-all
Browse files Browse the repository at this point in the history
  • Loading branch information
trptcolin committed Jan 25, 2016
1 parent d30e324 commit ec9d5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/koans/21_partition.clj
Expand Up @@ -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 or equal to n elements"
"You can use partition-all to include any leftovers too"
(= __ (partition-all 3 (range 5)))

"If you need to, you can start each sequence with an offset"
Expand Down

0 comments on commit ec9d5cd

Please sign in to comment.