Open strega-nil opened 5 years ago
syntax: type Array[T: type, N: UInt]
type Array[T: type, N: UInt]
func iter_map[ T: type, U: type, E: effect, ]( lst: List[T], f: func(T) E -> U, ) Yield[Int32] | E { ... }
Additionally, implicit polymorphism:
func iter_map(lst: List['t], f: func('t) 'e -> 'u) Yield[Int32] | 'e { ... }
syntax:
type Array[T: type, N: UInt]