R solution without closures
better to use Recall
better to use x instead of "al"
g here
Merge pull request #106 from robertzk/master

R solution without closures