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:
parent
23501a3385
commit
3c837db28d
@ -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#"
|
||||
|
Loading…
Reference in New Issue
Block a user