hsc3-lang-0.14: Haskell SuperCollider Language

Safe HaskellSafe-Inferred

Sound.SC3.Lang.Collection.Numerical.Truncating

Description

List instances of the standard haskell numerical classes with standard haskell truncating behaviour. Provides instances for Num, Fractional and Floating.

 [1,2] + [3,4,5] == [4,6]
 [1,2,3] * [4,5] == [4,10]

Literals are interpreted as infinte lists.

 [1,2,3] + 4 == [5,6,7]
 [1,2,3] * 4 == [4,8,12]