You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please note that the last statement, i.e. a[..3] outputs 3 lines of result
nim> var a = @[3, 1]
nim> a[0..1]
@[3, 1] == type int
nim> a.add 4
nim> a[0..2]
@[3, 1, 4] == type int
nim> a.add 1
nim> a[..3]
@[3, 1] == type int
@[3, 1, 4] == type int
@[3, 1, 4, 1] == type seq[int]
but
nim> var a = @[3, 1]
nim> a[0..1]
@[3, 1] == type int
nim> a.add 4
nim> a[0..2]
@[3, 1, 4] == type int
nim> a.add 1
nim> a[0..3]
@[3, 1, 4, 1] == type int
we know that nim says Warning: replace ..bwith0..b; .. is deprecated [Deprecated] on a[..3], but why inim outputs
@[3, 1] == type int
@[3, 1, 4] == type int
@[3, 1, 4, 1] == type seq[int]
The text was updated successfully, but these errors were encountered:
please note that the last statement, i.e.
a[..3]
outputs 3 lines of resultbut
we know that
nim
saysWarning: replace
..bwith
0..b; .. is deprecated [Deprecated]
ona[..3]
, but whyinim
outputsThe text was updated successfully, but these errors were encountered: