Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)


That's pretty similar, except you have the "(a, b) => a + b" inline.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: