F# – Combining predicates

I came across this SO ques­tion the oth­er day, and I real­ly liked Daniel’s answer as it illus­trates the beau­ty and ele­gance of F# and func­tion­al pro­gram­ming in gen­er­al!


Per­son­al­ly I love the com­bi­na­tors approach, and for any­one else who’s inter­est­ed to see what else you can do with com­bi­na­tors, check out the beau­ti­ful­ly craft­ed FPar­sec, a pars­er com­bi­na­tor library for F#.

Liked this post? Why not support me on Patreon and help me get rid of the ads!