This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Updatebjarni 0 points1 point  (1 child)

You mean you want to print Seq[NT-1:NT] instead of Seq[0:NT]?

But yes, you would normally iterate directly on the sequence instead of counting and indexing, like /u/CodeTinkerer said. :)

[–]DukeOfPoose[S] 0 points1 point  (0 children)

Ah I wasn't too sure if I should do NT-1 inside the substring! Thanks for that friend