Merge pull request #87186 from drewmullen/master

fix docs example for foldl
This commit is contained in:
Maximilian Bosch
2020-05-11 00:23:15 +02:00
committed by GitHub
+2 -2
View File
@@ -73,8 +73,8 @@ rec {
lconcat [ "a" "b" "c" ] lconcat [ "a" "b" "c" ]
=> "zabc" => "zabc"
# different types # different types
lstrange = foldl (str: int: str + toString (int + 1)) "" lstrange = foldl (str: int: str + toString (int + 1)) "a"
strange [ 1 2 3 4 ] lstrange [ 1 2 3 4 ]
=> "a2345" => "a2345"
*/ */
foldl = op: nul: list: foldl = op: nul: list: