_evaluate

trait _evaluate
class java.lang.Object
trait scala.Matchable
class Any

Def

inline def charAt(i: Int): Char

Char at position

Char at position

Returns Char at the specified position

Source
_evaluate.scala
inline def charAtOpt(i: Int): Char.Opt

Char at position

Char at position

Optionally Returns Char at the specified position

VOID is returned if specified position is out of String range

if(<name>.charAtOpt(2).take(_.isUpper)) ()
// is equivalent
if(<name>.length >=2 && <name>.charAt(2).isUpper) ()
Source
_evaluate.scala
inline def charIndexOpt(f: Char => Boolean, from: Int.Opt): Int.Opt

Char index

Char index

Optionally returns index of the first Char passing the let function

   "abcd_abcd_".charIndexOpt(_ >= 'd', 4).tp // Prints: Opt(8)
   "abcd_abcd_".charIndexOpt('x' <> 'z') tp  // Prints: Opt(VOID)
Value Params
from

position to start looking from

Source
_evaluate.scala
inline def compareTo(v: String): Int
inline def contains(v: String): Boolean

Contains check

Contains check

Returns true is this String contains that String

"abc".contains("cd").tp // Prints: false
Source
_evaluate.scala
inline def endsWith(v: String): Boolean

Check if ends with

Check if ends with

Returns true this String ends with that String

"abc".endsWith("bc").tp // Prints: true
Source
_evaluate.scala
inline def equalsIgnoreCase(v: String): Boolean

Check if equals ignore case

Check if equals ignore case

Returns true this and that String are equal, if upper and lower case Chars are considered equal

"aBc".equalsIgnoreCase("ABC").tp // Prints: true
Source
_evaluate.scala
inline def indexOfOpt(v: String, from: Int.Opt): Int.Opt

Value position

Value position

Optionally returns position of the specified x

"abcd_abcd_".indexOfOpt("d_a").tp // Prints: Opt(3)
Value Params
from

position to start looking from

Source
_evaluate.scala
inline def indexOfStream(v: String, from: Int.Opt): Int.Stream

Source of indexes

Source of indexes

Source of indexes for each occurrence of x

"abcd_abcd_abcd_abcd_abcd".indexOfStream("bc").tp // Prints Stream(1, 6, 11, 16, 21)
Value Params
from

position to start looking from

Source
_evaluate.scala
inline def lastCharIndexOpt(f: Char => Boolean, from: Int.Opt): Int.Opt

Char index

Char index

Optionally returns index of the last Char passing the let function

   "abcd_abcd_".lastCharIndexOpt(_ >= 'd', 4).tp // Prints: Opt(3)
   "abcd_abcd_".lastCharIndexOpt('x' <> 'z') tp  // Prints: Opt(VOID)
Value Params
from

last position to start looking from end to start

Source
_evaluate.scala
inline def lastIndexOfOpt(v: String, from: Int.Opt): Int.Opt

Value position

Value position

Optionally returns last position of the specified x

"abcd_abcd_abcd_".lastIndexOfOpt("d_a").tp // Prints: Opt(8)
Value Params
from

last position to start looking from end to start

Source
_evaluate.scala
inline def length: Int
inline def startsWith(v: String): Boolean

Check if begins with

Check if begins with

Returns true this String starts with that String

"abc".startsWith("ab").tp // Prints: true
Source
_evaluate.scala