dhall-nix-lib/Number/max.dhall

10 lines
251 B
Text

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