9 lines
92 B
Plaintext
9 lines
92 B
Plaintext
|
list = [1 2 3]
|
||
|
|
||
|
new_list = transform i in list {
|
||
|
i + 1
|
||
|
}
|
||
|
|
||
|
(assert_equal [2 3 4] new_list)
|
||
|
|