2025-06-20 21:09:41 +00:00
|
|
|
fn min {
|
|
|
|
"Returns the number in its arguments that is closest to negative infinity."
|
|
|
|
(x as :number) -> x
|
|
|
|
(x as :number, y as :number) -> if base :lt? (x, y) then x else y
|
|
|
|
(x, y, ...zs) -> (min, zs, min (x, y))
|
|
|
|
}
|
2024-12-11 22:22:37 +00:00
|
|
|
|
2025-06-20 21:09:41 +00:00
|
|
|
fn lt? (x as :number, y as :number) -> base :lt? (x, y)
|
2025-06-20 18:43:14 +00:00
|
|
|
|
2025-06-20 21:09:41 +00:00
|
|
|
#{min, lt?}
|