2title = "1a: Basic Arithmetic"
11Produces the sum of `a` and `b`.
43 > (add 1.333 (mul 2 2))
80 ~| %decrement-underflow
115Computes `a` divided by `b` without remainder.
134 ~_ leaf+"divide-by-zero"
139 $(a (sub a b), c +(c))
170Computes `a` divided by `b`, producing the quotient and the remainder.
189 [(div a b) (mod a b)]
220Tests whether `a` is greater than or equal to `b`.
260Tests whether `a` is greater than `b`.
292 > (gth 'steak' 'brisket')
301Tests whether `a` is less than or equal to `b`.
345 > (lte 'abraham' 'bob')
358Tests whether `a` is less than `b`.
381 $(a (dec a), b (dec b))
407 > (lth 'abraham' 'bob')
416Computes the greater of `a` and `b`.
451 > (max 'abraham' 'bob')
452 30.787.873.400.840.801
454 > `@t`(max 'abraham' 'bob')
457 > `@t`(max 'abraham' 'benjamin')
463 >`@ux`(max 0xe1 0x1e)
472Computes the lesser of `a` and `b`.
507 > (min 'abraham' 'bob')
510 > `@t`(min 'abraham' 'bob')
513 > `@t`(min 'abraham' 'benjamin')
526Computes the remainder of dividing `a` by `b`.
546 (sub a (mul b (div a b)))
577Multiplies `a` by `b`.
599 $(a (dec a), c (add b c))
628Subtracts `b` from `a`.
646 ~_ leaf+"subtract-underflow"
649 $(a (dec a), b (dec b))
678 > `@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