← go back
-- it already exists https://hackage.haskell.org/package/base-4.18.0.0/docs/Data-Function.html#v:-38-
import Data.Function
apply = (&)
squared n = n * n
main = print $ 5 & squared -- print (squared 5)
Jul 11, 2023, 6:38 AM
1 0 0
Comments