mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 03:45:29 +03:00
7 lines
128 B
Plaintext
7 lines
128 B
Plaintext
def main:
|
|
my_list = [1, 2, 3]
|
|
match my_list:
|
|
case List/Cons:
|
|
return my_list.head
|
|
case List/Nil:
|
|
return 0 |