- Toronto
Highlights
- Pro
Pinned Loading
-
elixir function for splitting lists ...
elixir function for splitting lists into equal sized chunks, written using recursion 1# `partition/2` splits a list into smaller lists of a given size, using recursion!
2#
3# usage:
4# list = [:one, :two, :three, :four, :five]
5# partition(list, 2)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.