4.6. kink/COMPARE

Mod to provide funs to compare vals.

4.6.1. COMPARE.min(X Y)

`min` returns X if X <= Y, otherwise Y.

Example:

stdout.print_line(COMPARE.min(10 20).repr)  # => 10

:Min <- [31 41 59 26 53].reduce(COMPARE$min).just
stdout.print_line(Min.repr) # => 26

4.6.2. COMPARE.max(X Y)

`max` returns X if X >= Y, otherwise Y.

Example:

stdout.print_line(COMPARE.max(10 20).repr)  # => 20

:Min <- [31 41 59 26 53].reduce(COMPARE$max).just
stdout.print_line(Min.repr) # => 59