dhall-nix-lib/Number/min.dhall

10 lines
251 B
Text

λ(nix : ../NixPrelude.dhall) →
let Number = ./Type.dhall
let lessThanEqual = ./lessThanEqual.dhall nix
let min
: Number → Number → Number
= λ(a : Number) → λ(b : Number) → if lessThanEqual a b then a else b
in min