Added cut rule for Foldmap and Dist.
Merge branch 'arrays' of https://github.com/jyp/LL into arrays