mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-12 17:54:26 +02:00
Trying to set a value in index 0. Is confusing
This commit is contained in:
@@ -210,7 +210,7 @@ length(a) #=> 8
|
|||||||
tup = (1, 2, 3) #=> (1,2,3) # an (Int64,Int64,Int64) tuple.
|
tup = (1, 2, 3) #=> (1,2,3) # an (Int64,Int64,Int64) tuple.
|
||||||
tup[1] #=> 1
|
tup[1] #=> 1
|
||||||
try:
|
try:
|
||||||
tup[0] = 3 #=> ERROR: no method setindex!((Int64,Int64,Int64),Int64,Int64)
|
tup[1] = 3 #=> ERROR: no method setindex!((Int64,Int64,Int64),Int64,Int64)
|
||||||
catch e
|
catch e
|
||||||
println(e)
|
println(e)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user