mes: Support map and for-each with lists of unequal length.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 2 Mar 2019 13:33:58 +0000 (14:33 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 2 Mar 2019 13:33:58 +0000 (14:33 +0100)
commit90b384def3a8cba784cd89785b396380b7f5f7d6
treee433f0da33c690b9ec261e5f13d40c428faa2ea7
parent757d603e4c200a0cab995ab99eda8392ab32979f
mes: Support map and for-each with lists of unequal length.

* mes/module/mes/base.mes (map): Support lists of unequal length.
* mes/module/mes/scm.mes (for-each): Likewise.
* module/mescc/compile.scm (expr->register): Fix compile warning.
* tests/scm.test ("map 1,2", "map 2,1", "for-each 1,2", "for-each
2,1": Test it.
mes/module/mes/base.mes
mes/module/mes/scm.mes
module/mescc/compile.scm
tests/scm.test