Mirror of
forum.nim-lang.org
index
8917 :: the easiest to get this string cut
[2022-02-15T03:45:12+01:00]
View Orginal
mardiyah
(orginal)
[2022-02-15T03:45:12+01:00]
view original
How the simplest, easiest to get thistr =
"
def
"
:
str=
"
abcdef
"
begstr=
"
abc
"
thistr :string
thistr = ???
<
- just no, or system only, module
rgv151
(orginal)
[2022-02-15T04:32:24+01:00]
view original
var
str
=
"abcdef"
begstr
=
"abc"
thistr
=
str
[
begstr
.
len
..^
1
]
echo
thistr
Run
xigoi
(orginal)
[2022-02-15T05:54:30+01:00]
view original
https://nim-lang.org/docs/strutils.html#removePrefix,string,string