reversed method

NucleotideSequence reversed()

(en) Gets a new reversed Sequence.

(ja) 反転した新しいSequenceを取得します。

Implementation

NucleotideSequence reversed() {
  NucleotideSequence r = deepCopy();
  r.sequence = r.sequence.reversed.toList();
  r.direction = r.direction.reversed();
  return r;
}