I came across this SO ques­tion the other day, and I really liked Daniel’s answer as it illus­trates the beauty and ele­gance of F# and func­tional pro­gram­ming in general!

image

Per­son­ally I love the com­bi­na­tors approach, and for any­one else who’s inter­ested to see what else you can do with com­bi­na­tors, check out the beau­ti­fully crafted FPar­sec, a parser com­bi­na­tor library for F#.

Share

Leave a Reply