development version is odd
This commit is contained in:
parent
8ea78b1bc9
commit
662f043b59
1 changed files with 5 additions and 5 deletions
|
|
@ -1909,7 +1909,7 @@ const
|
||||||
NimMinor*: int = 17
|
NimMinor*: int = 17
|
||||||
## is the minor number of Nim's version.
|
## is the minor number of Nim's version.
|
||||||
|
|
||||||
NimPatch*: int = 2
|
NimPatch*: int = 3
|
||||||
## is the patch number of Nim's version.
|
## is the patch number of Nim's version.
|
||||||
|
|
||||||
NimVersion*: string = $NimMajor & "." & $NimMinor & "." & $NimPatch
|
NimVersion*: string = $NimMajor & "." & $NimMinor & "." & $NimPatch
|
||||||
|
|
@ -3402,10 +3402,10 @@ when hasAlloc or defined(nimscript):
|
||||||
proc `[]`*(s: string, x: Slice[int]): string {.inline.} =
|
proc `[]`*(s: string, x: Slice[int]): string {.inline.} =
|
||||||
## slice operation for strings.
|
## slice operation for strings.
|
||||||
## returns the inclusive range [s[x.a], s[x.b]]:
|
## returns the inclusive range [s[x.a], s[x.b]]:
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var s = "abcdef"
|
## var s = "abcdef"
|
||||||
## assert s[1..3] == "bcd"
|
## assert s[1..3] == "bcd"
|
||||||
result = s.substr(x.a, x.b)
|
result = s.substr(x.a, x.b)
|
||||||
|
|
||||||
proc `[]=`*(s: var string, x: Slice[int], b: string) =
|
proc `[]=`*(s: var string, x: Slice[int], b: string) =
|
||||||
|
|
@ -3427,7 +3427,7 @@ when hasAlloc or defined(nimscript):
|
||||||
proc `[]`*[Idx, T](a: array[Idx, T], x: Slice[int]): seq[T] =
|
proc `[]`*[Idx, T](a: array[Idx, T], x: Slice[int]): seq[T] =
|
||||||
## slice operation for arrays.
|
## slice operation for arrays.
|
||||||
## returns the inclusive range [a[x.a], a[x.b]]:
|
## returns the inclusive range [a[x.a], a[x.b]]:
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var a = [1,2,3,4]
|
## var a = [1,2,3,4]
|
||||||
## assert a[0..2] == @[1,2,3]
|
## assert a[0..2] == @[1,2,3]
|
||||||
|
|
@ -3466,7 +3466,7 @@ proc `[]=`*[Idx, T](a: var array[Idx, T], x: Slice[Idx], b: openArray[T]) =
|
||||||
proc `[]`*[T](s: seq[T], x: Slice[int]): seq[T] =
|
proc `[]`*[T](s: seq[T], x: Slice[int]): seq[T] =
|
||||||
## slice operation for sequences.
|
## slice operation for sequences.
|
||||||
## returns the inclusive range [s[x.a], s[x.b]]:
|
## returns the inclusive range [s[x.a], s[x.b]]:
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var s = @[1,2,3,4]
|
## var s = @[1,2,3,4]
|
||||||
## assert s[0..2] == @[1,2,3]
|
## assert s[0..2] == @[1,2,3]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue