1 import "JavaBuiltin" as Java
3 importJava "org.simantics.scl.runtime.Lists" where
4 foldl :: (a -> b -> a) -> a -> [b] -> a
13 instance (Additive a, Additive b, Additive c) => Additive (a, b, c) where
14 zero = (zero, zero, zero)
15 (a0, b0, c0) + (a1, b1, c1) = (a0+a1, b0+b1, c0+c1)