Moduletidal-1.9.5Haskell2010
Sound.Tidal.Utils
- 16 values
- Packagetidal-1.9.5
- Exports16
- 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"]