2title = "1a: Basic Arithmetic"
10Produces the sum of `a` and `b`.
42 > (add 1.333 (mul 2 2))
79 ~| %decrement-underflow
114Computes `a` divided by `b` without remainder.
133 ~_ leaf+"divide-by-zero"
138 $(a (sub a b), c +(c))
169Computes `a` divided by `b`, producing the quotient and the remainder.
188 [(div a b) (mod a b)]
219Tests whether `a` is greater than or equal to `b`.
259Tests whether `a` is greater than `b`.
291 > (gth 'steak' 'brisket')
300Tests whether `a` is less than or equal to `b`.
344 > (lte 'abraham' 'bob')
357Tests whether `a` is less than `b`.
380 $(a (dec a), b (dec b))
406 > (lth 'abraham' 'bob')
415Computes the greater of `a` and `b`.
450 > (max 'abraham' 'bob')
451 30.787.873.400.840.801
453 > `@t`(max 'abraham' 'bob')
456 > `@t`(max 'abraham' 'benjamin')
462 >`@ux`(max 0xe1 0x1e)
471Computes the lesser of `a` and `b`.
506 > (min 'abraham' 'bob')
509 > `@t`(min 'abraham' 'bob')
512 > `@t`(min 'abraham' 'benjamin')
525Computes the remainder of dividing `a` by `b`.
545 (sub a (mul b (div a b)))
576Multiplies `a` by `b`.
598 $(a (dec a), c (add b c))
627Subtracts `b` from `a`.
645 ~_ leaf+"subtract-underflow"
648 $(a (dec a), b (dec b))
677 > `@ux`(sub 0x1f 0xe)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list