diff options
author | Drew Mullen <drew@nebulaworks.com> | 2020-05-07 09:04:02 -0400 |
---|---|---|
committer | Drew Mullen <drew@nebulaworks.com> | 2020-05-08 08:31:27 -0400 |
commit | 448d68c511d43cfc0f1580794daafb2ffb879ce6 (patch) | |
tree | efd0bde5c8a58ab7bd7cef886f0b4b120ecee69c /lib/lists.nix | |
parent | 2c58b1d464d8dffc1e5b21041a62eea31ecbd118 (diff) | |
download | nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.tar nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.tar.gz nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.tar.bz2 nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.tar.lz nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.tar.xz nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.tar.zst nixpkgs-448d68c511d43cfc0f1580794daafb2ffb879ce6.zip |
fix example for foldl
Diffstat (limited to 'lib/lists.nix')
-rw-r--r-- | lib/lists.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lists.nix b/lib/lists.nix index f9f30412770..f424946c72c 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -73,8 +73,8 @@ rec { lconcat [ "a" "b" "c" ] => "zabc" # different types - lstrange = foldl (str: int: str + toString (int + 1)) "" - strange [ 1 2 3 4 ] + lstrange = foldl (str: int: str + toString (int + 1)) "a" + lstrange [ 1 2 3 4 ] => "a2345" */ foldl = op: nul: list: |