chore: argument name
This commit is contained in:
parent
3b8c4ada75
commit
7fa43216f5
1 changed files with 2 additions and 2 deletions
|
|
@ -241,8 +241,8 @@ forMAux f t.root *> t.tail.forM f
|
|||
|
||||
end
|
||||
|
||||
@[inline] def foldl {β} (t : PersistentArray α) (f : β → α → β) (b : β) : β :=
|
||||
Id.run (t.foldlM f b)
|
||||
@[inline] def foldl {β} (t : PersistentArray α) (f : β → α → β) (init : β) : β :=
|
||||
Id.run (t.foldlM f init)
|
||||
|
||||
@[inline] def filter (as : PersistentArray α) (p : α → Bool) : PersistentArray α :=
|
||||
as.foldl (fun asNew a => if p a then asNew.push a else asNew) {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue