1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-20 08:05:15 +03:00

Fix lists.reverse

This commit is contained in:
silverraven691 2021-11-19 12:20:59 +01:00
parent 23501a3385
commit 3c837db28d

View File

@ -155,7 +155,7 @@
[ 3, 2, 1 ]
```
"#m
= fun l => foldl (fun acc e => acc @ [e]) [] l,
= fun l => foldl (fun acc e => [e] @ acc) [] l,
filter : forall a. (a -> Bool) -> List a -> List a
| doc m#"