Safe Haskell | None |
---|---|
Language | Haskell98 |
Sound.SC3.Lang.Collection.Numerical.Extending
Description
List instances of the standard haskell numerical classes with SC3
extension behaviour. Provides instances for Num
, Fractional
and Floating
.
[1,2] + [3,4,5] == [4,6,6] [1,2,3] * [4,5] == [4,10,12]
Literals are interpreted as single element lists.
[1,2,3] + 4 == [5,6,7] [1,2,3] * 4 == [4,8,12]