Tried to use (.)
for function composition, but it doesn't work.
import Data.String (length, trim)
trimmedLength :: String -> Int
trimmedLength = length . trim
Function composition in PureScript is done with (<<<)
, not (.)
.
import Data.String (length, trim)
trimmedLength :: String -> Int
trimmedLength = length <<< trim
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With