aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/control/number.lux
blob: 1087f69ea6d24b48093a500ce1066cdab25de6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(.module:
  lux)

## [Signatures]
(sig: #export (Number n)
  {#.doc "Everything that should be expected of a number type."}

  (do-template [<name>]
    [(: (-> n n n) <name>)]
    [+] [-] [*] [/] [%])

  (do-template [<name>]
    [(: (-> n n) <name>)]
    [negate] [signum] [abs])
  )