@@ -181,10 +181,7 @@ logBase = Native.Basics.logBase
181181 200 if 200 <= x
182182-}
183183clamp : number -> number -> number -> number
184−clamp lo hi n =
185− if | n < lo -> lo
186− | n > hi -> hi
187− | otherwise -> n
184+clamp = Native.Basics.clamp
188185
189186{-| An approximation of pi. -}
190187pi : Float
@@ -233,11 +230,11 @@ data Order = LT | EQ | GT
233230
234231{-| Given two comparables, returns the smaller one. -}
235232min : comparable -> comparable -> comparable
236−min a b = if a < b then a else b
233+min = Native.Basics.min
237234
238235{-| Given two comparables, returns the larger one. -}
239236max : comparable -> comparable -> comparable
240−max a b = if a > b then a else b
237+max = Native.Basics.max
241238
242239{-| The and operator. True if both inputs are True.
243240This operator short-circuits if the first argument is False.