Merge branch 'more_concurrency' into devel
Conflicts: doc/tut1.txt lib/core/locks.nim lib/pure/collections/tables.nim lib/pure/selectors.nim
This commit is contained in:
commit
28de800d61
13 changed files with 584 additions and 265 deletions
|
|
@ -1334,11 +1334,11 @@ define operators which accept Slice objects to define ranges.
|
|||
b = "Slices are useless."
|
||||
|
||||
echo a[7..12] # --> 'a prog'
|
||||
b[11.. ^2] = "useful"
|
||||
b[11..^2] = "useful"
|
||||
echo b # --> 'Slices are useful.'
|
||||
|
||||
In the previous example slices are used to modify a part of a string, and even
|
||||
a negative index is used. The slice's bounds can hold any value supported by
|
||||
In the previous example slices are used to modify a part of a string. The
|
||||
slice's bounds can hold any value supported by
|
||||
their type, but it is the proc using the slice object which defines what values
|
||||
are accepted.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue