Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
16
Task/Arrays/Nu/arrays.nu
Normal file
16
Task/Arrays/Nu/arrays.nu
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
let x = [1 2 3]
|
||||
|
||||
print $x
|
||||
|
||||
# Both are equivalent
|
||||
print $x.1 ($x | get 1)
|
||||
|
||||
# Shadowing the original x
|
||||
let x = $x | append 4
|
||||
print $x
|
||||
|
||||
# Using mut
|
||||
mut y = [a b c]
|
||||
print $y
|
||||
$y = $y | append d
|
||||
print $y
|
||||
Loading…
Add table
Add a link
Reference in a new issue