on cf70879 help sign in
41 lines 440 B history raw
1### `++max`
3Maximum
5Computes the greater of `a` and `b`.
7Accepts
8-------
10`a` is an atom.
12`b` is an atom.
14Produces
15--------
17An atom.
19Source
20------
22 ++ max :: maximum
23 ~/ %max
24 |= {a/@ b/@}
25 ^- @
26 ?: (gth a b) a
27 b
29Examples
30--------
32 ~zod/try=> (max 10 100)
33 100
34 ~zod/try=> (max 10.443 9)
35 10.443
36 ~zod/try=> (max 0 1)
37 1
41***