get

abstract operator fun get(i: Int): NUC

Returns the NUC of this NucSeq at the specified index i with i starting at zero Negative index start from the end of the sequence, i.e. -1 is the last base

NucSeq("ACGT")[1] == NUC.C

abstract operator fun get(i: Int, j: Int): NucSeq

Returns a subset NucSeq based on the inclusive start i and inclusive last j Indices start at zero. Negative index start from the end of the sequence, i.e. -1 is the last base

NucSeq("ACGT")[1,2] == NucSeq("CG")

abstract operator fun get(x: IntRange): NucSeq

Returns a subset NucSeq based on the IntRange of Nucleotides. Kotlin range operator is "..". Indices start at zero. Note Kotlin IntRange are inclusive end, while Python slices exclusive end Negative slices "-3..-1" start from the last base (i.e. would return the last three bases)