blob: 646ad6e86dbb88190a8eb4753daf8c23729241df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import gleam/io
pub fn main() {
let ints = [1, 2, 3]
io.debug(ints)
// Immutably prepend
io.debug([-1, 0, ..ints])
// Uncomment this to see the error
// io.debug(["zero", ..ints])
// The original lists are unchanged
io.debug(ints)
}
|