Moduletidal-core-1.10.2Haskell2010
Sound.Tidal.Utils
Synopsis
- value writeError
- value mapBoth
- value mapPartTimes
- value mapFst
- value mapSnd
- value delta
- value mid
- value removeCommon
- value readMaybe
- value !!!
- value nth
- value accumulate
- value enumerate
- value wordsBy
- value matchMaybe
- value fromRight
- value applyWhen
- value pairs
- value nubOrd
- value nubOrdOn
- value nubOrdOnExcluding
- value nubOrdOnFB
- value constNubOn
- Packagetidal-core-1.10.2
- Exports23
- LanguageHaskell2010
- LicenceGPL-3.0-only
- SourceUtils.hs
The midpoint of two values
like !! selects nth element from xs, but wraps over at the end of xs
map ((!!!) [1,3,5]) [0,1,2,3,4,5][1,3,5,1,3,5]
Safer version of !! -
enumerate a list of things
enumerate ["foo","bar","baz"][(1,"foo"), (2,"bar"), (3,"baz")]
split given list of a by given single a, e.g.
wordsBy (== ':') "bd:3"["bd", "3"]