 Nim 2.0.8 Manual# prints "@[1, 2, 3]" and not "123" type MySeq = object len, cap: int data: UncheckedArray[int] typedef struct { NI len; NI cap; NI data[]; } MySeq; type Person = tuple[name: string, age: int]0 码力 | 132 页 | 5.73 MB | 1 年前3 Nim 2.0.8 Manual# prints "@[1, 2, 3]" and not "123" type MySeq = object len, cap: int data: UncheckedArray[int] typedef struct { NI len; NI cap; NI data[]; } MySeq; type Person = tuple[name: string, age: int]0 码力 | 132 页 | 5.73 MB | 1 年前3
 Nim 2.0.2 中文手册@[1, 2, 3] # 输出 "@[1, 2, 3]" ⽽不是 "123" type MySeq = object len, cap: int data: UncheckedArray[int] typedef struct { NI len; NI cap; NI data[]; } MySeq; 可以使⽤括号和尾随逗号,构造具有⼀个未命名字段的元组: 事实上,每个元组结构都允许使⽤尾随逗号。0 码力 | 127 页 | 7.05 MB | 1 年前3 Nim 2.0.2 中文手册@[1, 2, 3] # 输出 "@[1, 2, 3]" ⽽不是 "123" type MySeq = object len, cap: int data: UncheckedArray[int] typedef struct { NI len; NI cap; NI data[]; } MySeq; 可以使⽤括号和尾随逗号,构造具有⼀个未命名字段的元组: 事实上,每个元组结构都允许使⽤尾随逗号。0 码力 | 127 页 | 7.05 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.54 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.54 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.53 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.53 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.50 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.50 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.53 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.53 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.53 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.53 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.55 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.55 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.54 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.54 MB | 1 年前3
 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.54 MB | 1 年前3 Computer Programming with the Nim Programming Languagecating that "\p" maps to "\c\l" on Windows, equivalent to "\r\n". Currently, Nim allows the use of cap ital letters in place of the lowercase ones for these control characters, namely '\L', '\C', '\N' e. $c for an arbitrary character or $s for optional white space. The optional white space is not cap tured, just ignored. With the use of $s, our program already allows a more flexible input string: function uses as a third argument a string, which is used for replacements and in which we can refer to cap tured groups with the symbols $N, where N is the index of the captured group starting at one. The0 码力 | 512 页 | 3.54 MB | 1 年前3
共 28 条
- 1
- 2
- 3













