fix error in code example on why-functional-languages blog post