`import options, sequtils var mySeq = @["a1", "b2", "c3", "d4", "e5", "f6"] echo mySeq let myOptSeq = mySeq.mapIt(some(it)) & none(string) echo myOptSeq `
Run
`import options, sequtils var mySeq = @["a1", "b2", "c3", "d4", "e5", "f6"] echo mySeq let myOptSeq = mySeq.mapIt(some(it)) & none(string) echo myOptSeq `
Run