Skip to content

Instantly share code, notes, and snippets.

@dewey92
Last active February 28, 2019 00:32
Show Gist options
  • Select an option

  • Save dewey92/ead0c1a99a83c6dc81d7f74647b8df26 to your computer and use it in GitHub Desktop.

Select an option

Save dewey92/ead0c1a99a83c6dc81d7f74647b8df26 to your computer and use it in GitHub Desktop.
Partial App - Haskell
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