dhall-nix-lib/Number/max.dhall

11 lines
251 B
Text
Raw Normal View History

λ(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