Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Saavedro
on April 9, 2015
|
parent
|
context
|
favorite
| on:
Teaching Haskell to a 10 year old: Day 1
> Or is it more like you pass the multiply function the first operand (2 in this case) and it returns a function multiply-by-2 which you pass the second operand
This is exactly it. You can literally write:
multiply_by_2 = (*) 2
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This is exactly it. You can literally write:
multiply_by_2 = (*) 2