1
0
dust/examples/remove_loop.ds

9 lines
113 B
Plaintext
Raw Normal View History

2023-10-19 01:50:45 +00:00
list = [1 2 1 3]
2023-10-31 13:31:10 +00:00
removed = remove i from list {
2023-10-19 01:50:45 +00:00
i == 3
}
(assert_equal 3 removed)
(assert_equal [1 2 1] list)