dhall-nix-lib/Double/min.dhall

8 lines
222 B
Text

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