Copyright | slotThe <soliditsallgood@mailbox.org> |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | slotThe <soliditsallgood@mailbox.org> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
XMonad.Prelude
Description
Utility functions and re-exports for a more ergonomic developing experience. Users themselves will not find much use here.
Documentation
chunksOf :: Int -> [a] -> [[a]] Source #
Given a maximum length, splits a list into sublists
>>>
chunksOf 5 (take 30 $ repeat 'a')
["aaaaa","aaaaa","aaaaa","aaaaa","aaaaa","aaaaa"]