mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-07-14 07:00:48 +03:00
chore: update list.bend
occurence -> occurrence
This commit is contained in:
parent
8440fad2a4
commit
e44f68ba8c
@ -125,7 +125,7 @@ pop_back (List/Cons head tail) = (List/Cons head (pop_back tail))
|
|||||||
|
|
||||||
# List remove:
|
# List remove:
|
||||||
# List l -> Some s -> List l
|
# List l -> Some s -> List l
|
||||||
# removes the first occurence of element e from list l.
|
# removes the first occurrence of element e from list l.
|
||||||
remove = @l @s
|
remove = @l @s
|
||||||
match l {
|
match l {
|
||||||
List/Cons:
|
List/Cons:
|
||||||
@ -169,4 +169,4 @@ def main:
|
|||||||
# return reverse([1, 2, 3, 4, 5])
|
# return reverse([1, 2, 3, 4, 5])
|
||||||
# return append([1, 2], 3)
|
# return append([1, 2], 3)
|
||||||
# return add_front([2, 3], 1)
|
# return add_front([2, 3], 1)
|
||||||
# return concat([1, 2], [3, 4])
|
# return concat([1, 2], [3, 4])
|
||||||
|
Loading…
Reference in New Issue
Block a user