Abstract
This article describes a functional programming puzzle that we had to solve in order to implement a JavaScript templating system. It is a very simple problem (to explain), with a very simple solution (in size and complexity) that was not easy to find.
Read on