I have this: 
    
    
    from sequtils import nil
    var
      dna_norm = "ACGTacgtNn-"
      dna_comp = "TGCAtgcaNn-"
      a = sequtils.toSeq(runes(dna_norm))
      b = sequtils.toSeq(runes(dna_comp))
      rcmap = sequtils.zip( a, b )
    
    echo(rcmap)
    

That works: 
    
    
    [(a: A, b: T), (a: C, b: G), (a: G, b: C), (a: T, b: A), (a: a, b: t), (a: 
c, b: g), (a: g, b: c), (a: t, b: a), (a: N, b: N), (a: n, b: n), (a: -, b: -)]
    

But I was wondering if there was a way to do that with UTF8 values. Or, put 
another way, how can I iterate over the UTF8 values of a string, and turn those 
into a seq?

Reply via email to