Introduction
applyTwice :: (a -> a) -> a -> a
applyTwice f x = f (f x)
ghci> applyTwice (++ " two") "one"
"one two two"Last updated
applyTwice :: (a -> a) -> a -> a
applyTwice f x = f (f x)
ghci> applyTwice (++ " two") "one"
"one two two"Last updated