Last active
February 28, 2019 00:32
-
-
Save dewey92/ead0c1a99a83c6dc81d7f74647b8df26 to your computer and use it in GitHub Desktop.
Partial App - Haskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fillNames :: String -> String -> String -> String | |
| fillNames firstN middleN lastN = firstN ++ middleN ++ lastN | |
| a :: String -> String -> String | |
| a = fillNames "Jihad" | |
| b :: String | |
| b = a " Dzikri" " Waspada" | |
| b == "Jihad Dzikri Waspada" -- True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment