Math module

square

procedure · 1 overloadSource

a * a, for any type with *.

ExampleOpen in playground ↗
assert(square(3) == 9 && square(1.5) == 2.25);
square :: (a: $T) -> T

a times itself.

Parameters

a: $T
the value.

Returns

T

See also