Copyright | slotThe <soliditsallgood@mailbox.org> |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | slotThe <soliditsallgood@mailbox.org> |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Utility functions and re-exports for a more ergonomic developing experience. Users themselves will not find much use here.
Synopsis
- module Data.Traversable
- module Data.Monoid
- module Data.Maybe
- module Data.List
- module Data.Functor
- module Data.Function
- module Data.Foldable
- module Data.Char
- module Data.Bool
- module Control.Monad
- module Control.Applicative
- fi :: (Integral a, Num b) => a -> b
- chunksOf :: Int -> [a] -> [[a]]
- (.:) :: (a -> b) -> (c -> d -> a) -> c -> d -> b
- (!?) :: [a] -> Int -> Maybe a
Documentation
module Data.Traversable
module Data.Monoid
module Data.Maybe
module Data.List
module Data.Functor
module Data.Function
module Data.Foldable
module Data.Char
module Data.Bool
module Control.Monad
module Control.Applicative
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"]