Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on June 18, 2012
|
parent
|
context
|
favorite
| on:
A Gray Beard Explores F#
his `applyBinaryOp` was the way it would be called: in F# you'd use
applyBinaryOp state (+)
in C# you can't use operator sections so you'd have to wrap the operator in a lambda explicitly:
applyBinaryOp(state, (a, b) => a + b)
SideburnsOfDoom
on June 18, 2012
[–]
That's pretty similar, except you have the "(a, b) => a + b" inline.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: