3 title/'1a: Basic Arithmetic'
15Produces the sum of `a` and `b`.
47 > (add 1.333 (mul 2 2))
84 ~| %decrement-underflow
119Computes `a` divided by `b` without remainder.
138 ~_ leaf+"divide-by-zero"
143 $(a (sub a b), c +(c))
174Computes `a` divided by `b`, producing the quotient and the remainder.
193 [(div a b) (mod a b)]
224Tests whether `a` is greater than or equal to `b`.
264Tests whether `a` is greater than `b`.
296 > (gth 'steak' 'brisket')
305Tests whether `a` is less than or equal to `b`.
349 > (lte 'abraham' 'bob')
362Tests whether `a` is less than `b`.
385 $(a (dec a), b (dec b))
411 > (lth 'abraham' 'bob')
420Computes the greater of `a` and `b`.
455 > (max 'abraham' 'bob')
456 30.787.873.400.840.801
458 > `@t`(max 'abraham' 'bob')
461 > `@t`(max 'abraham' 'benjamin')
467 >`@ux`(max 0xe1 0x1e)
476Computes the lesser of `a` and `b`.
511 > (min 'abraham' 'bob')
514 > `@t`(min 'abraham' 'bob')
517 > `@t`(min 'abraham' 'benjamin')
530Computes the remainder of dividing `a` by `b`.
550 (sub a (mul b (div a b)))
581Multiplies `a` by `b`.
603 $(a (dec a), c (add b c))
632Subtracts `b` from `a`.
650 ~_ leaf+"subtract-underflow"
653 $(a (dec a), b (dec b))
682 > `@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