Merge pull request #4119 from edwtjo/list-helpers

init list helper
This commit is contained in:
Aristid Breitkreuz 2014-09-16 22:52:48 +02:00
commit e0b6da1708

View file

@ -209,6 +209,10 @@ in rec {
assert list != []; elemAt list (dec (length list));
# Return all elements but the last
init = list: assert list != []; take (length list - 1) list;
# Zip two lists together.
zipTwoLists = xs: ys:
let