Document deepSeq

This commit is contained in:
Shea Levy 2013-02-04 07:20:14 -05:00
parent ed87cc2e4e
commit 0d1b60d206

View file

@ -27,6 +27,8 @@ rec {
# evaluation of its first argument.
seq = x: y: if x == null then y else y;
# Like `seq', but recurses into lists and attribute sets to force evaluation
# of all list elements/attributes.
deepSeq = x: y:
if builtins.isList x
then deepSeqList x y