io.github.scala_tessella.ring_seq.IndexingOps
Provides indexing operations for a Seq
considered circular.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Known subtypes
-
Members list
For improved readability, the index of a Seq
.
For improved readability, the index of a Seq
.
Attributes
For improved readability, the index of a circular Seq
.
For improved readability, the index of a circular Seq
.
Attributes
-
Note
-
any value is a valid index, provided that Seq
is not empty
Gets the element at some circular index.
Gets the element at some circular index.
Value parameters
-
i
-
IndexO
Attributes
-
Throws
-
java.lang.ArithmeticException
if Seq
is empty
-
Example
-
Seq(0, 1, 2).applyO(3) // 0
Normalize a given index of a circular Seq
Normalize a given index of a circular Seq
Value parameters
-
i
-
IndexO
Attributes