_evaluate

trait _evaluate extends _evaluate[String]
trait _evaluate[String]
class java.lang.Object
trait scala.Matchable
class Any

Def

inline def charAt(inline i: Int): Char

Char at position

Char at position

Returns Char at the specified position

Inherited from
_evaluate
Source
_evaluate.scala
@scala.annotation.targetName("charAt_Opt")
inline def charAt_?(i: Int): Char.Opt

Char at position

Char at position

Optionally Returns Char at the specified position

/ is returned if specified position is out of String range

if(<name>.charAt_?(2).take(_.isUpper)) ()
// is equivalent
if(<name>.length >=2 && <name>.charAt(2).isUpper) ()
Inherited from
_evaluate
Source
_evaluate.scala
@scala.annotation.targetName("charIndex_Opt")
inline def charIndex_?(inline f: Char => Boolean, inline from: Int.Opt): Int.Opt

Char index

Char index

Optionally returns index of the first Char passing the let function

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

position to start looking from

Inherited from
_evaluate
Source
_evaluate.scala
inline def compareTo(inline v: A): Int
Inherited from
_evaluate
Source
_evaluate.scala
inline def contains(inline v: A | String): Boolean

Contains check

Contains check

Returns true is this String contains that String "abc".contains("cd") tp // Prints: false

Inherited from
_evaluate
Source
_evaluate.scala
inline def endsWith(inline v: A | String): Boolean

Check if ends with

Check if ends with

Returns true this String ends with that String "abc".endsWith("bc") tp // Prints: true

Inherited from
_evaluate
Source
_evaluate.scala
inline def equalsIgnoreCase(inline v: A | 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

Inherited from
_evaluate
Source
_evaluate.scala
@scala.annotation.targetName("indexOf_Stream")
inline def indexOf_~(inline v: A | String, inline from: Int.Opt): ~[Int]

Source of indexes

Source of indexes

Source of indexes for each occurrence of x "abcd_abcd_abcd_abcd_abcd".indexOf_~("bc") tp // Prints ~(1, 6, 11, 16, 21)

Value Params
from

position to start looking from

Inherited from
_evaluate
Source
_evaluate.scala
@scala.annotation.targetName("indexOf_Opt")
inline def indexOf_?(inline v: A | String, inline from: Int.Opt): Int.Opt

Value position

Value position

Optionally returns position of the specified x "abcd_abcd_".indexOf_?("d_a") tp // Prints: Opt(3)

Value Params
from

position to start looking from

Inherited from
_evaluate
Source
_evaluate.scala
@scala.annotation.targetName("lastCharIndex_Opt")
inline def lastCharIndex_?(inline f: Char => Boolean, inline from: Int.Opt): Int.Opt

Char index

Char index

Optionally returns index of the last Char passing the let function

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

last position to start looking from end to start

Inherited from
_evaluate
Source
_evaluate.scala
@scala.annotation.targetName("lastIndexOf_Opt")
inline def lastIndexOf_?(inline v: A | String, inline from: Int.Opt): Int.Opt

Value position

Value position

Optionally returns last position of the specified x "abcd_abcd_abcd_".lastIndexOf_?("d_a") tp // Prints: Opt(8)

Value Params
from

last position to start looking from end to start

Inherited from
_evaluate
Source
_evaluate.scala
inline def length: Int
Inherited from
_evaluate
Source
_evaluate.scala
inline def startsWith(inline v: A | String): Boolean

Check if begins with

Check if begins with

Returns true this String starts with that String "abc".startsWith("ab") tp // Prints: true

Inherited from
_evaluate
Source
_evaluate.scala