diff options
author | Shea Levy <shea@shealevy.com> | 2013-02-04 07:20:14 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2013-02-04 07:20:14 -0500 |
commit | 0d1b60d206b450f7e051646c4542ffe61eaa7b35 (patch) | |
tree | 632312708dad75951c41db4ef5ecfd7807af0022 /pkgs/lib/trivial.nix | |
parent | ed87cc2e4e8abc346262a268bb0999565ae89c41 (diff) | |
download | nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.tar nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.tar.gz nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.tar.bz2 nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.tar.lz nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.tar.xz nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.tar.zst nixpkgs-0d1b60d206b450f7e051646c4542ffe61eaa7b35.zip |
Document deepSeq
Diffstat (limited to 'pkgs/lib/trivial.nix')
-rw-r--r-- | pkgs/lib/trivial.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/lib/trivial.nix b/pkgs/lib/trivial.nix index e971dd6d80e..8af3474f2a6 100644 --- a/pkgs/lib/trivial.nix +++ b/pkgs/lib/trivial.nix @@ -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 |