/ fundamentals / spread_operator.nu
spread_operator.nu
1 # Spread operator (...) is used to append one or more lists together 2 3 let x = [1 2] 4 5 let y = [ 6 ...$x 7 3 8 ...(4..7 | take 2) 9 ] 10 11 print $x 12 13 print " " 14 15 print $y