Type polymorphism
Type parameters
class Vector:
x y z :: Realclass Vector a:
x y z :: aVector "hello" "world" "!" :: Vector Text
Vector 1 2 3 :: Vector Int
Vector 1.0 2.0 3.0 :: Vector Real
Constrained methods

Last updated
Was this helpful?