fix example for foldl

gstqt5
Drew Mullen 2020-05-07 09:04:02 -04:00
parent 2c58b1d464
commit 448d68c511
1 changed files with 2 additions and 2 deletions

View File

@ -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: