removed $ for openarray, was commented out
This commit is contained in:
parent
b6e4a5229d
commit
565031f0cd
1 changed files with 0 additions and 13 deletions
|
|
@ -1690,19 +1690,6 @@ proc `$`*[T: seq](x: T): string =
|
||||||
firstElement = false
|
firstElement = false
|
||||||
result.add("]")
|
result.add("]")
|
||||||
|
|
||||||
when false:
|
|
||||||
proc `$`*[T](a: openArray[T]): string =
|
|
||||||
## generic ``$`` operator for open arrays that is lifted from the elements
|
|
||||||
## of `a`. Example:
|
|
||||||
##
|
|
||||||
## .. code-block:: nimrod
|
|
||||||
## $[23, 45] == "[23, 45]"
|
|
||||||
result = "["
|
|
||||||
for x in items(a):
|
|
||||||
if result.len > 1: result.add(", ")
|
|
||||||
result.add($x)
|
|
||||||
result.add("]")
|
|
||||||
|
|
||||||
# ----------------- GC interface ---------------------------------------------
|
# ----------------- GC interface ---------------------------------------------
|
||||||
|
|
||||||
when not defined(nimrodVM) and hostOS != "standalone":
|
when not defined(nimrodVM) and hostOS != "standalone":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue