diff options
author | h7x4 <h7x4@nani.wtf> | 2022-12-17 21:57:17 +0100 |
---|---|---|
committer | h7x4 <h7x4@nani.wtf> | 2023-02-06 20:40:47 +0100 |
commit | 7c4abbf80e1471d7844aae825f6d1015ce315a48 (patch) | |
tree | 4732d1dfe37370875eed0d8317d02b7b4237948e /lib/default.nix | |
parent | 41169b15c53350d893d3715cf19eed598d3dbec1 (diff) | |
download | nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.tar nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.tar.gz nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.tar.bz2 nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.tar.lz nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.tar.xz nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.tar.zst nixpkgs-7c4abbf80e1471d7844aae825f6d1015ce315a48.zip |
lib.lists: add `replicate`
`replicate` returns n copies of an element as a list. Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix index 68e5b8dea1e..9fa3f4175a2 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -87,7 +87,7 @@ let updateManyAttrsByPath; inherit (self.lists) singleton forEach foldr fold foldl foldl' imap0 imap1 concatMap flatten remove findSingle findFirst any all count - optional optionals toList range partition zipListsWith zipLists + optional optionals toList range replicate partition zipListsWith zipLists reverseList listDfs toposort sort naturalSort compareLists take drop sublist last init crossLists unique intersectLists subtractLists mutuallyExclusive groupBy groupBy'; |