Merge pull request #87186 from drewmullen/master
fix docs example for foldl
commit3ecb13877046c0dbf6b8a81b3d14fae4332edb39
authorMaximilian Bosch <maximilian@mbosch.me>
dateMon 11 May 2020, 00:23 (7 years ago)
parentb03233d448d68c
lib/lists.nix+2−2
@@ -73,8 +73,8 @@ rec {
7373 lconcat [ "a" "b" "c" ]
7474 => "zabc"
7575 # different types
76− lstrange = foldl (str: int: str + toString (int + 1)) ""
77− strange [ 1 2 3 4 ]
76+ lstrange = foldl (str: int: str + toString (int + 1)) "a"
77+ lstrange [ 1 2 3 4 ]
7878 => "a2345"
7979 */
8080 foldl = op: nul: list: