From 448d68c511d43cfc0f1580794daafb2ffb879ce6 Mon Sep 17 00:00:00 2001 From: Drew Mullen Date: Thu, 7 May 2020 09:04:02 -0400 Subject: fix example for foldl --- lib/lists.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lists.nix') diff --git a/lib/lists.nix b/lib/lists.nix index f9f30412770a..f424946c72cd 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: -- cgit v1.2.3