|
|
|
@ -11,8 +11,8 @@
|
|
|
|
|
"If you need to, you can start each sequence with an offset"
|
|
|
|
|
(= '((0 1 2) (5 6 7) (10 11 12)) (partition 3 __ (range 13)))
|
|
|
|
|
|
|
|
|
|
"Consider padding the last sequence with some default values.."
|
|
|
|
|
"Consider padding the last sequence with some default values..."
|
|
|
|
|
(= '((0 1 2) (3 4 5) (6 :hello)) (partition 3 3 [__] (range 7)))
|
|
|
|
|
|
|
|
|
|
".. but notice that they will only pad up to given sequence length"
|
|
|
|
|
(= '((0 1 2) (3 4 5) __) (partition 3 3 [:this :are "my" "words"] (range 7))))
|
|
|
|
|
"... but notice that they will only pad up to the given sequence length"
|
|
|
|
|
(= '((0 1 2) (3 4 5) __) (partition 3 3 [:these :are "my" "words"] (range 7))))
|
|
|
|
|