Safe Haskell | None |
---|---|
Language | Haskell98 |
Sound.SC3.Lang.Collection.Extension
Description
Variants of standard numerical operators with SC3 extension behaviour. Pointwise operations in SuperCollider language extend the shorter input by cycling.
[1,2] +. [3,4,5] == [1,2,1] +. [3,4,5] [1,2] +. [3,4,5] == [4,6,6]
The function underlying the list numerical instances is zipWith_c
.
zipWith (+) [1,2] [3,4,5] == [4,6] zipWith_c (+) [1,2] [3,4,5] == [4,6,6]