dhall-nix-lib/Double/max.dhall

8 lines
222 B
Text

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