I'm in a situation where I have a seq[char]
, like so:
import sequtils
var s: seq[char] = toSeq("abc".items)
What's the best way to convert s
back into a string (i.e. "abc"
)? Stringifying with $
seems to give "@[a, b, c]"
, which is not what I want.
mapIt
is now deprecated in favor ofapplyIt
: github.com/nim-lang/Nim/pull/3372/files – Galvanism