14 lines
159 B
Nim
Executable file
14 lines
159 B
Nim
Executable file
import strutils
|
|
|
|
var s = ""
|
|
for w in split("|abc|xy|z", {'|'}):
|
|
s.add("#")
|
|
s.add(w)
|
|
|
|
if s == "#abc#xy#z":
|
|
echo "true"
|
|
else:
|
|
echo "false"
|
|
|
|
#OUT true
|
|
|