J.Vm.Predef.GlobalExtensionLibrary

Def

inline def ~~[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def ~~[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def ~~[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def ~~: Stream[(String, Any)]
Inherited from
z_Methods
Source
__.scala
inline def ~~[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def ~~[A]: Stream[A]

Alias to .stream

Alias to .stream

Note. In cases when target collection already has a "stream" method with different semantics, calling ~~ is the only option.

Inherited from
JavaCollections
Source
__.scala
inline def ~~[A]: Stream[A]

Alias to .stream

Alias to .stream

Note. In cases when target collection already has a "stream" method with different semantics, calling ~~ is the only option.

Inherited from
ScalaCollections
Source
__.scala
@targetName("join")
inline def +[A](c: Ordering[
Inherited from
_methods
Source
Ordering.scala
inline def +[A](v: A)(using s: Specialized[A]): s.Array

Shortcut to 'join'

Shortcut to 'join'

Copies base array to a new array with given element appended

Inherited from
_methods
Source
_methods.scala
@targetName("joinTag")
inline def ++(v: A)(using d: Any.Def.Tag[A]): String

Join tag

Join tag

Joins value tag to base string.

Use it instead of '+'. Single plus joins '.toString' instead of '.tag', which often does not make sense especially for 'opaque values'

Note. This method should logically be called '+'. However, it is already defined in 'final class String' and cannot be overridden.

  val p = 12.Percent

  val s = "Value: " ++ p

  // same result as

  val s = "Value: " + p.tag
Inherited from
_modify
Source
_modify.scala
inline def ++[A](v: Stream[A])(using s: Specialized[A]): s.Array

Shortcut to 'joinAll'

Shortcut to 'joinAll'

Copies base array to a new array with given stream of elements appended

Inherited from
_methods
Source
_methods.scala
inline def ++@[A](i: Int, v: Stream[A])(using s: Specialized[A]): s.Array

Shortcut to 'joinAllAt'

Shortcut to 'joinAllAt'

Copies base array to a new array with given stream of elements inserted at given position

Inherited from
_methods
Source
_methods.scala
@targetName("addSpaced")
inline def +-[A](v: B)(using ta: Any.Def.Tag[A], tb: Any.Def.Tag[B]): String

Any to String add with space

Any to String add with space

Concatenates this and given object string tags with one space in between

true +- 1 +- 2 +- 3 +- 'A' +- 10.Percent tp() // Prints true 1 2 3 A 10%

Note. Java supports AnyRef + AnyRef, resulting in their String representation concatenation. Scala 2 also used to support this, which was a big mistake, because this not really important + operation, due to it global nature, would interfere with all attempts to use + for anything else. Scala 3 got rid of this for good. Scalqa re-introduces this usefull functionality with such a weired name "+-", hoping it will not pose naming conflits

Inherited from
_Methods
Source
__.scala
@targetName("joinOpt")
inline def +?(v: Opt[A])(using d: Any.Def.Tag[A]): String

Optional join

Optional join

Joins option value to base string.

Returns String "as is" for empty option.

Inherited from
_modify
Source
_modify.scala
inline def +@[A](i: Int, v: A)(using s: Specialized[A]): s.Array

Shortcut to 'joinAt'

Shortcut to 'joinAt'

Copies base array to a new array with given element inserted at given position

Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Double): Double.Range

Range

Range

Returns Double.Range from current to given value

 (1.0 <> 10.0).tp  // Prints  1.0 <> 10.0
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Float): Float.Range

Range

Range

Returns Float.Range from current to given value

 (1F <> 10F).tp  // Prints  1.0 <> 10.0
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Long): Long.Range

Range

Range

Returns Long.Range from current to given value

 (1L <> 10L).tp  // Prints  1 <> 10
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Int): Int.Range

Range

Range

Returns Int.Range from current to given value

 (1 <> 10).tp  // Prints  1 <> 10
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Short): Short.Range

Range

Range

Returns Short.Range from current to given value

 (1.Short <> 10.Short).tp  // Prints  1 <> 10
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Char): Char.Range

Range

Range

Returns Char.Range from current to given value

 ('a' <> 'd').tp  // Prints  a <> d
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>(to: Byte): Byte.Range

Range

Range

Returns Byte.Range from current to given value

 (1.Byte <> 10.Byte).tp  // Prints  1 <> 10
Inherited from
_methods
Source
_methods.scala
@targetName("range")
inline def <>[A](to: A)(using o: Ordering[A])(using s: Specialized[A]): s.Range

Range

Range

Returns Range from current to given value

 ("AAA" <> "BBB").tp  // Prints  AAA <> BBB

Note. An Ordering must be implicitly available

Inherited from
_Methods
Source
__.scala
@targetName("rangeOfSize")
inline def <>=(size: Int): Long.Range

Range by size

Range by size

Returns Long.Range starting at current value and with given size

 (5L <>= 10L).tp  // Prints 5 <> 14
Inherited from
_methods
Source
_methods.scala
@targetName("rangeOfSize")
inline def <>=(size: Int): Int.Range

Range by size

Range by size

Returns Int.Range starting at current value and with given size

 (5 <>= 10).tp  // Prints 5 <> 14
Inherited from
_methods
Source
_methods.scala
@targetName("rangeOfSize")
inline def <>=(size: Int): Short.Range

Range by size

Range by size

Returns Short.Range starting at current value and with given size

 (5.Short <>= 10).tp  // Prints 5 <> 14
Inherited from
_methods
Source
_methods.scala
@targetName("rangeOfSize")
inline def <>=(size: Int): Char.Range

Range by size

Range by size

Returns Char.Range starting at current value and with given size

 ('a' <>= 5).tp  // Prints a <> e
Inherited from
_methods
Source
_methods.scala
@targetName("rangeOfSize")
inline def <>=(size: Int): Byte.Range

Range by size

Range by size

Returns Byte.Range starting at current value and with given size

 (5.Byte <>= 10).tp  // Prints 5 <> 14
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Double): Double.Range

Exclusive end range

Exclusive end range

Returns Double.Range from current to given value exclusive

 (1.0 <>> 10.0).tp  // Prints  1.0 <>> 10.0
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Float): Float.Range

Exclusive end range

Exclusive end range

Returns Float.Range from current to given value exclusive

 (1F <>> 10F).tp  // Prints  1.0 <>> 10.0
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Long): Long.Range

Exclusive end range

Exclusive end range

Returns Long.Range from current to given value exclusive

 (1L <>> 10L).tp  // Prints  1 <> 9
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Int): Int.Range

Exclusive end range

Exclusive end range

Returns Int.Range from current to given value exclusive

 (1 <>> 10).tp  // Prints  1 <> 9
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Short): Short.Range

Exclusive end range

Exclusive end range

Returns Short.Range from current to given value exclusive

 (1.Short <>> 10.Short).tp  // Prints  1 <> 9
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Char): Char.Range

Exclusive end range

Exclusive end range

Returns Char.Range from current to given value exclusive

 ('a' <>> 'd').tp  // Prints  a <> c
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>(to: Byte): Byte.Range

Exclusive end range

Exclusive end range

Returns Byte.Range from current to given value exclusive

 (1.Byte <>> 10.Byte).tp  // Prints  1 <> 9
Inherited from
_methods
Source
_methods.scala
@targetName("rangeX")
inline def <>>[A](to: A)(using o: Ordering[A])(using s: Specialized[A]): s.Range

Exclusive end range

Exclusive end range

Returns <> from current to given value exclusive

 ("AAA" <>> "BBB").tp  // Prints  AAA <>> BBB

Note. An Ordering must be implicitly available

Inherited from
_Methods
Source
__.scala
@targetName("Opt")
inline def ?: Double.Opt

To option

To option

Returns Double.Opt for current value

 val o : Double.Opt = 12.0.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Float.Opt

To option

To option

Returns Float.Opt for current value

 val o : Float.Opt = 12F.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Long.Opt

To option

To option

Returns Long.Opt for current value

 val o : Long.Opt = 12L.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Int.Opt

To option

To option

Returns Int.Opt for current value

 val o : Int.Opt = 12.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Short.Opt

To option

To option

Returns Short.Opt for current value

 val o : Short.Opt = 12.Short.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Char.Opt

To option

To option

Returns Char.Opt for current value

 val o : Char.Opt = 'A'.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Byte.Opt

To option

To option

Returns Byte.Opt for current value

 val o : Byte.Opt = 12.Byte.?
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?(v: => A): Opt[A]

To given value option

To given value option

Returns given value option if base Boolean is true, and void option if false

 var b = true

 (b ? "Foo").tp  // Prints   Opt(Foo)

 b = false

 (b ? "Foo").tp  // Prints   Opt(VOID)

Note: This operation can be used as a conditional function

 var b = true

 (b ? "Foo" or "Bar").tp  // Prints   Foo

 b = false

 (b ? "Foo" or "Bar").tp  // Prints   Bar
Inherited from
_methods
Source
_methods.scala
@targetName("Opt")
inline def ?: Boolean.Opt

To option

To option

Returns Boolean.Opt for current value

 val o: Boolean.Opt = true.?
Inherited from
_methods
Source
_methods.scala
@targetName("opt")
inline def ?[A](using s: Specialized[A]): s.Opt

To option

To option

Returns Opt for current value

 val o : Opt[String] = "Foo".?

Result will be empty option if value is 'null', but non empty for void values. Use .?? instead if void or empty check is required.

Inherited from
_Methods
Source
__.scala
@targetName("nonEmptyOpt")
inline def ??[A](using e: Opt[Any.Def.Empty[A]])(using d: Any.Def.Void[A]): Opt[A]

To non-empty value option

To non-empty value option

Returns base value as an option.

Unlike general .? method, this method will create empty option for void or empty values

 val p: Stream[Int]=VOID

 p.?.tp    // prints: Opt(scalqa.val.pack.z.Void)

 p.??.tp  // prints: Opt(VOID)

This method can even safely check Stream for emptiness, returning Stream with original values

def s : Stream[Int] = (1 <> 3).stream.dropFirst(3)

s.??.tp  // prints: Opt(VOID)
s.?.tp   // prints: Opt(Stream())
Inherited from
_Methods
Source
__.scala
inline def ??[A]: Result[A]
Inherited from
xtra
Source
xtra.scala
@targetName("nonEmptyOpt")
inline def ??[A]: Opt[Stream[A]]
Inherited from
opt
Source
opt.scala
@targetName("nonEmptyOpt")
inline def ??: Opt[String]
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Double]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Float]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Long]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Int]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Short]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Char]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Byte]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A <: Any.Boolean]: A
Inherited from
opt
Source
opt.scala
inline def `val`[A]: A
Inherited from
opt
Source
opt.scala
inline def charAt(i: Int): Char

Char at position

Char at position

Returns Char at the specified position

Inherited from
_evaluate
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) ()
Inherited from
_evaluate
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

Inherited from
_evaluate
Source
_evaluate.scala

Stream of Chars

Stream of Chars

Returns String as a Stream of [Char]]

"abcd".charStream.tp // Prints Stream(a, x, c, d)
Inherited from
_transform
Source
_transform.scala
inline def compareOpt[A](v: Opt[
Inherited from
_methods
Source
Ordering.scala
inline def compareTo(v: String): Int
Inherited from
_evaluate
Source
_evaluate.scala
inline def contains(v: 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 contains[A](v: A)(using s: Specialized[A]): Boolean

Contains check

Contains check

Returns true if array contains equal value, `false - otherwise

Inherited from
_methods
Source
_methods.scala
inline def copySize[A](size: Int)(using s: Specialized[A]): s.Array

Copy with new size

Copy with new size

Creates new Array of specified size (can be larger or smaller), with appropriate elements copied from base array

Inherited from
_methods
Source
_methods.scala
inline def copyTo[A](a: Array[A], pos: Int, from: Int, size: Int): Unit

Copy to array

Copy to array

Copies base array elements to given array, starting at given 'pos'

'from' and 'size' specify base array range to be copied

Note. Efficient JVM System.arraycopy method is used

Inherited from
_methods
Source
_methods.scala
inline def copyTo[A](a: Array[A], pos: Int): Unit

Copy to array

Copy to array

Copies base array elements to given array, starting at given position

Note. Efficient JVM System.arraycopy method is used

Inherited from
_methods
Source
_methods.scala
inline def copyTo[A](a: Array[A]): Unit

Copy to array

Copy to array

Copies base array elements to given array

Note. Efficient JVM System.arraycopy method is used

Inherited from
_methods
Source
_methods.scala
inline def doc[A](using d: Any.Def.Doc[A]): Doc

Get Doc

Get Doc

Returns Doc object describing current instance

Reference types can implement Able.Doc, opaque types can provide implicit Any.Def.Doc, in any case this operation will retrieve Doc or will create a default one, if none is found.

Inherited from
_Methods
Source
__.scala
inline def dropFirst(cnt: Int): String

Copy without start

Copy without start

Copies without given number of first characters

The method call is inlined as Java .substring(cnt)

Inherited from
_copy
Source
_copy.scala
inline def dropLast(cnt: Int): String

Copy without end

Copy without end

Copies without given number of last characters

The method call is inlined as Java x.substring(0, x.length - cnt)

Inherited from
_copy
Source
_copy.scala
inline def dropRange(i: Int.Range): String

Copy without range

Copy without range

Copies without range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def dropRange(start: Int, size: Int): String

Copy without range

Copy without range

Copies without range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def dropRange[A](r: Int.Range)(using s: Specialized[A]): s.Array

Drop range

Drop range

Copies base array to a new array without elements of specified range

Inherited from
_methods
Source
_methods.scala
inline def dropRange[A](start: Int, size: Int)(using s: Specialized[A]): s.Array

Drop range

Drop range

Copies base array to a new array without elements of specified range

Inherited from
_methods
Source
_methods.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
Inherited from
_evaluate
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
Inherited from
_evaluate
Source
_evaluate.scala
inline def fill[A](v: A)(using s: Specialized[A]): Unit

Fill value

Fill value

Assigns given value to all base array positions

Inherited from
_methods
Source
_methods.scala
inline def fillRange[A](r: Int.Range, v: A)(using s: Specialized[A]): Unit

Fill range with value

Fill range with value

Assigns given value to base array positions within given range

Inherited from
_methods
Source
_methods.scala
inline def fillRange[A](start: Int, size: Int, v: A)(using s: Specialized[A]): Unit

Fill range with value

Fill range with value

Assigns given value to base array positions within given range

Inherited from
_methods
Source
_methods.scala
inline def in[A](c: CONTAINER)(using d: Any.Def.Contains[CONTAINER, A]): Boolean

Is within

Is within

Returns true if this instance is contained by given container.

 val range = 1 <> 10

 (5 in range).tp   // Prints true

 val pack = (1 <> 10).stream.pack

 (5 in pack).tp    // Prints true

Note. This operation is Macro optimized for Tuples from 2 to 12, so the following check will be ultimatly efficent with no Tuple allocation:

 val s = "ABC"

 s in ("XYZ","BBC","CBC")
Inherited from
_Methods
Source
__.scala
inline def indent(tag: String): String

Indents text with the lines

Indents text with the lines

Indents text with the tag.

Prefixes first line with the tag, other lines with tag equal space

```
   "abc\

de
xyz".indent("Idxs: ").tp // Output Idxs: abc de xyz ```

Inherited from
_transform
Source
_transform.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

Inherited from
_evaluate
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

Inherited from
_evaluate
Source
_evaluate.scala
inline def insertAt(i: Int, v: String): String

Insert at position

Insert at position

Creates new String with x inserted at the specified position

"0123456789".insertAt(5,"abc").tp // Prints: 01234abc56789
Inherited from
_modify
Source
_modify.scala
inline def isAlphabetic: Boolean

Is alphabetic check

Is alphabetic check

Inlines call to java.lang.Character.isAlphabetic

Inherited from
_methods
Source
_methods.scala
inline def isDigit: Boolean

Is digit check

Is digit check

Inlines call to java.lang.Character.isDigit

Inherited from
_methods
Source
_methods.scala
inline def isLetter: Boolean

Is letter check

Is letter check

Inlines call to java.lang.Character.isLetter

Inherited from
_methods
Source
_methods.scala
inline def isLetterOrDigit: Boolean

Is letter or digit check

Is letter or digit check

Inlines call to java.lang.Character.isLetterOrDigit

Inherited from
_methods
Source
_methods.scala
inline def isLower: Boolean

Lower case check

Lower case check

Inlines call to java.lang.Character.isLowerCase

Inherited from
_methods
Source
_methods.scala
inline def isUpper: Boolean

Upper case check

Upper case check

Inlines call to java.lang.Character.isUpperCase

Inherited from
_methods
Source
_methods.scala
inline def isVoid[A](using d: Any.Def.Void[A]): Boolean

Void check

Void check

Returns true if target is void

Note: Operation can fail for null value, use .self.isVoid if null check is required

Inherited from
_Methods
Source
__.scala
@targetName("DOV")
inline def isVoid[A <: Any.Double]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("FOV")
inline def isVoid[A <: Any.Float]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("LOV")
inline def isVoid[A <: Any.Long]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("IOV")
inline def isVoid[A <: Any.Int]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("SOV")
inline def isVoid[A <: Any.Short]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("COV")
inline def isVoid[A <: Any.Char]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("YOV")
inline def isVoid[A <: Any.Byte]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("BOV")
inline def isVoid[A <: Any.Boolean]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("VOV")
inline def isVoid[A]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("selfIsVoid")
inline def isVoid[A](using d: Any.Def.Void[
Inherited from
self
Source
self.scala
inline def isWhitespace: Boolean

Whitespace check

Whitespace check

Inlines call to java.lang.Character.isWhitespace

Inherited from
_methods
Source
_methods.scala
inline def join[A](c: Ordering[
Inherited from
_methods
Source
Ordering.scala
inline def join[A](v: A)(using s: Specialized[A]): s.Array

Join element

Join element

Copies base array to a new array with given element appended

Inherited from
_methods
Source
_methods.scala
inline def joinAll[A](v: Stream[A])(using s: Specialized[A]): s.Array

Join multiple elements

Join multiple elements

Copies base array to a new array with given stream of elements appended

Inherited from
_methods
Source
_methods.scala
inline def joinAllAt[A](i: Int, v: Stream[A])(using s: Specialized[A]): s.Array

Join multiple elements at position

Join multiple elements at position

Copies base array to a new array with given stream of elements inserted at given position

Inherited from
_methods
Source
_methods.scala
inline def joinAt[A](i: Int, v: A)(using s: Specialized[A]): s.Array

Join element at position

Join element at position

Copies base array to a new array with given element inserted at given position

Inherited from
_methods
Source
_methods.scala
inline def label: String

Capitalize

Capitalize

Capitalizes first character of every word (separated by white spaces)

"all string ops".label.tp // Prints: All String Ops
Inherited from
_modify
Source
_modify.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

Inherited from
_evaluate
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

Inherited from
_evaluate
Source
_evaluate.scala
inline def length: Int
Inherited from
_evaluate
Source
_evaluate.scala
inline def lineStream: Stream[String]

Stream of lines

Stream of lines

Creates a [[Stream]] of Strings representing lines (delimited by '

') of this text

```
"abc\

def
xyz".lineStream.tp // Prints Stream(abc, def, xyz) ```

Inherited from
_transform
Source
_transform.scala
inline def lower: Char

Make lower case

Make lower case

Inlines call to java.lang.Character.toLowerCase

Inherited from
_methods
Source
_methods.scala
inline def lower: String

toLowerCase

toLowerCase

Creates new String with all upper case Chars changed to lower case

"ABc".lower.tp // Prints: abc
Inherited from
_modify
Source
_modify.scala
inline def map[A](f: U => A): Ordering[U]
Inherited from
_methods
Source
Ordering.scala
inline def max(v: Double): Double

Max value

Max value

Returns maximum of current or given value

 val v = 5F

 v.max(0).tp   // Prints 5.0

 v.max(10).tp  // Prints 10.0
Inherited from
_methods
Source
_methods.scala
inline def max(v: Float): Float

Max value

Max value

Returns maximum of current or given value

 val v = 5F

 v.max(0).tp   // Prints 5.0

 v.max(10).tp  // Prints 10.0
Inherited from
_methods
Source
_methods.scala
inline def max(v: Long): Long

Max value

Max value

Returns maximum of current or given value

 val v = 5L

 v.max(0).tp   // Prints 5

 v.max(10).tp  // Prints 10
Inherited from
_methods
Source
_methods.scala
inline def max(v: Int): Int

Max value

Max value

Returns maximum of current or given value

 val b = 5

 b.max(0).tp   // Prints 5

 b.max(10).tp  // Prints 10
Inherited from
_methods
Source
_methods.scala
inline def max(v: Short): Short

Max value

Max value

Returns maximum of current or given value

 val b = 5.Short

 b.max(0).tp   // Prints 5

 b.max(10).tp  // Prints 10
Inherited from
_methods
Source
_methods.scala
inline def max(v: Char): Char

Max value

Max value

Returns maximum of current or given value

 val v = 'D'

 v.max('A').tp   // Prints D

 v.max('F').tp   // Prints F
Inherited from
_methods
Source
_methods.scala
inline def max(v: Byte): Byte

Max value

Max value

Returns maximum of current or given value

 val b = 5.Byte

 b.max(0).tp   // Prints 5

 b.max(10).tp  // Prints 10
Inherited from
_methods
Source
_methods.scala
inline def min(v: Double): Double

Min value

Min value

Returns minimun of current or given value

 val v = 5F

 v.min(0).tp   // Prints 0.0

 v.min(10).tp  // Prints 5.0
Inherited from
_methods
Source
_methods.scala
inline def min(v: Float): Float

Min value

Min value

Returns minimun of current or given value

 val v = 5F

 v.min(0).tp   // Prints 0.0

 v.min(10).tp  // Prints 5.0
Inherited from
_methods
Source
_methods.scala
inline def min(v: Long): Long

Min value

Min value

Returns minimun of current or given value

 val v = 5L

 v.min(0).tp   // Prints 0

 v.min(10).tp  // Prints 5
Inherited from
_methods
Source
_methods.scala
inline def min(v: Int): Int

Min value

Min value

Returns minimun of current or given value

 val b = 5

 b.min(0).tp   // Prints 0

 b.min(10).tp  // Prints 5
Inherited from
_methods
Source
_methods.scala
inline def min(v: Short): Short

Min value

Min value

Returns minimun of current or given value

 val b = 5.Short

 b.min(0).tp   // Prints 0

 b.min(10).tp  // Prints 5
Inherited from
_methods
Source
_methods.scala
inline def min(v: Char): Char

Min value

Min value

Returns minimun of current or given value

val v = 'D'

v.min('A').tp   // Prints A

v.min('F').tp   // Prints D
Inherited from
_methods
Source
_methods.scala
inline def min(v: Byte): Byte

Min value

Min value

Returns minimun of current or given value

 val b = 5.Byte

 b.min(0).tp   // Prints 0

 b.min(10).tp  // Prints 5
Inherited from
_methods
Source
_methods.scala
inline def name: String

Char name

Char name

Inlines call to java.lang.Character.getName

Inherited from
_methods
Source
_methods.scala
inline def newArray[A](size: Int)(using s: Specialized[A]): s.Array

New Array

New Array

Creates new empty array of the same type as base array, but with given size

Inherited from
_methods
Source
_methods.scala
inline def nonVoid[A](using d: Any.Def.Void[A]): Boolean

Not void check

Not void check

Returns true if target is non void

Note: Operation can fail for null value, use .self.nonVoid if null check is required

Inherited from
_Methods
Source
__.scala
@targetName("DON")
inline def nonVoid[A <: Any.Double]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("FON")
inline def nonVoid[A <: Any.Float]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("LON")
inline def nonVoid[A <: Any.Long]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("ION")
inline def nonVoid[A <: Any.Int]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("SON")
inline def nonVoid[A <: Any.Short]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("CON")
inline def nonVoid[A <: Any.Char]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("YON")
inline def nonVoid[A <: Any.Byte]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("BON")
inline def nonVoid[A <: Any.Boolean]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("VON")
inline def nonVoid[A]: Boolean
Inherited from
opt
Source
opt.scala
@targetName("selfNonVoid")
inline def nonVoid[A](using d: Any.Def.Void[
Inherited from
self
Source
self.scala
inline def not: Boolean

Reversed Boolean

Reversed Boolean

This is a postfix operation equivalent to !, ie. true.not == !true

 var b = true

 b.not  // Prints   false

 b = false

 b.not  // Prints   true

Note: This operation is inlined and can be used without performance worries

Inherited from
_methods
Source
_methods.scala
inline def notIn[A](c: CONTAINER)(using d: Any.Def.Contains[CONTAINER, A]): Boolean

Is not within

Is not within

Reverse "in" method

Inherited from
_Methods
Source
__.scala
inline def optView[A](voidPosition: Int): Ordering[Opt[A]]
Inherited from
_methods
Source
Ordering.scala
inline def pack[A](using s: Specialized[
Inherited from
z_Methods
Source
__.scala
inline def pack[A](using s: Specialized[A]): s.Pack

Pack of elements

Pack of elements

Returns Pack of collection elements

Inherited from
JavaCollections
Source
__.scala
inline def pack[A](using s: Specialized[A]): s.Pack

Pack of elements

Pack of elements

Returns Pack of collection elements

Inherited from
ScalaCollections
Source
__.scala
inline def pack[A](using s: Specialized[A]): s.Pack
Inherited from
_methods
Source
_methods.scala
inline def padEndTo(size: Int, pad: String): String

Pad end

Pad end

  Pads end of string to `targetLength`
Value Params
pad

string to pad with. "ABC".padEndTo(10,"_").tp // Prints: ABC_______

Inherited from
_modify
Source
_modify.scala
inline def padStartTo(size: Int, pad: String): String

Pad start

Pad start

  Pads start of string to `targetLength`
Value Params
pad

string to pad with. "ABC".padStartTo(10,"_").tp // Prints: _______ABC

Inherited from
_modify
Source
_modify.scala
inline def rankView[A](fun: Int): Ordering[A]
Inherited from
_methods
Source
Ordering.scala
inline def real: java.lang.String
Inherited from
xtra
Source
xtra.scala
inline def real: Double
Inherited from
xtra
Source
xtra.scala
inline def real: Float
Inherited from
xtra
Source
xtra.scala
inline def real: Long
Inherited from
xtra
Source
xtra.scala
inline def real: Int
Inherited from
xtra
Source
xtra.scala
inline def real: Short
Inherited from
xtra
Source
xtra.scala
inline def real: Char
Inherited from
xtra
Source
xtra.scala
inline def real: Byte
Inherited from
xtra
Source
xtra.scala
inline def real: Boolean
Inherited from
xtra
Source
xtra.scala
inline def remove(v: String): String

Remove all

Remove all

Creates new String with all occurrences of x removed

"123123123123".remove("2").tp // Prints: 13131313
Inherited from
_modify
Source
_modify.scala
inline def replace(v: String, target: String): String

Replace all

Replace all

Creates new String with all occurrences of x replaced with target

"123123123123".replace("2","_").tp // Prints: 1_31_31_31_3
Inherited from
_modify
Source
_modify.scala
inline def replace(r: Int.Range, v: String): String

Replace range with x

Replace range with x

Creates new String with all occurrences of x replaced with target

"0123456789".replace(3 <> 7 ,"_").tp // Prints: 012_89
Inherited from
_modify
Source
_modify.scala
inline def replaceFirst(v: String, v2: String, cnt: Int): String
Inherited from
_modify
Source
_modify.scala
inline def replaceLast(v: String, v2: String, cnt: Int): String
Inherited from
_modify
Source
_modify.scala
inline def reverse[A]: Ordering[A]
Inherited from
_methods
Source
Ordering.scala
inline def roundTo(unit: Double)(using r: Math.Rounding): Double

Round to size

Round to size

Rounds current value to specified size

 91F.roundTo(5).tp            // Prints 90.0

 91F.roundTo(5)(using UP).tp  // Prints 95.0
Inherited from
_methods
Source
_methods.scala
inline def roundTo(unit: Float)(using r: Math.Rounding): Float

Round to size

Round to size

Rounds current value to specified size

 91F.roundTo(5).tp            // Prints 90.0

 91F.roundTo(5)(using UP).tp  // Prints 95.0
Inherited from
_methods
Source
_methods.scala
inline def roundTo(unit: Long)(using r: Math.Rounding): Long

Round to size

Round to size

Rounds current value to specified size

 91L.roundTo(5).tp            // Prints 90

 91L.roundTo(5)(using UP).tp  // Prints 95
Inherited from
_methods
Source
_methods.scala
inline def roundTo(unit: Int)(using r: Math.Rounding): Int

Round to size

Round to size

Rounds current value to specified size

 91.roundTo(5).tp            // Prints 90

 91.roundTo(5)(using UP).tp  // Prints 95
Inherited from
_methods
Source
_methods.scala
inline def roundTo(unit: Int)(using r: Math.Rounding): Short

Round to size

Round to size

Rounds current value to specified size

 91.Short.roundTo(5).tp            // Prints 90

 91.Short.roundTo(5)(using UP).tp  // Prints 95
Inherited from
_methods
Source
_methods.scala
inline def roundTo(unit: Int)(using r: Math.Rounding): Byte

Round to size

Round to size

Rounds current value to specified size

 91.Byte.roundTo(5).tp            // Prints 90

 91.Byte.roundTo(5)(using UP).tp  // Prints 95
Inherited from
_methods
Source
_methods.scala
inline def roundToDecimal(d: Int)(using r: Math.Rounding): Double

Round to decimal

Round to decimal

Rounds current value to specified decimal position of fractional value

Inherited from
_methods
Source
_methods.scala
inline def roundToDecimal(d: Int)(using r: Math.Rounding): Float

Round to decimal

Round to decimal

Rounds current value to specified decimal position of fractional value

Inherited from
_methods
Source
_methods.scala
inline def self[A]: Any._methods.Self[A]

Self view

Self view

Returns additional "self" library available to this instance

The most popular feature is doing some processing within context of an anonimous function

val a: Array[Int] = new Array[Int](3).self(_.fill(5))

// Compare to

val b: Array[Int] = { val a = new Array[Int](3); a.fill(5); a }

Note. Due to opaque implementation and inlining, there is no performance difference in the above two cases

Inherited from
_Methods
Source
__.scala
inline def sort[A](using c: Ordering[A])(using s: Specialized[A]): Unit

Sort array

Sort array

Sorts array elements

Inherited from
_methods
Source
_methods.scala
inline def sortRange[A](r: Int.Range)(using c: Ordering[A])(using s: Specialized[A]): Unit

Sort array range

Sort array range

Sorts array elements within given range

Inherited from
_methods
Source
_methods.scala
inline def sortRange[A](start: Int, size: Int)(using c: Ordering[A])(using s: Specialized[A]): Unit

Sort array range

Sort array range

Sorts array elements within given range

Inherited from
_methods
Source
_methods.scala
inline def splitStream(sep: Char, more: Char*): Stream[String]
Inherited from
_transform
Source
_transform.scala
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
Inherited from
_evaluate
Source
_evaluate.scala
inline def stream[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def stream[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def stream[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def stream: Stream[(String, Any)]
Inherited from
z_Methods
Source
__.scala
inline def stream[A]: Stream[A]
Inherited from
z_Methods
Source
__.scala
inline def stream[A]: Stream[A]

Stream of elements

Stream of elements

Returns Stream of collection elements

Inherited from
JavaCollections
Source
__.scala
inline def stream[A]: Stream[A]

Stream of elements

Stream of elements

Returns Stream of collection elements

Inherited from
ScalaCollections
Source
__.scala
inline def stream[A](sz: Int)(using s: Specialized[A]): Specialized.Stream & Able.Size

Sized stream

Sized stream

Returns stream of array elements limited to given size

Inherited from
_methods
Source
_methods.scala
inline def stream[A](using s: Specialized[A]): Specialized.Stream & Able.Size

Elements stream

Elements stream

Returns stream of array elements

Inherited from
_methods
Source
_methods.scala
inline def tag[A](using t: Any.Def.Tag[A]): String

Make String

Make String

Returns String representation of base value.

.tag has to universally be used instead of Java .toString. This is due to opaque types, which by definition cannot override .toString, but have facility to provide correct .tag.

In traditional objects, .tag by default calls .toString.

val v: Time.Length =  100.Seconds

v.tag.tp       // Prints 1 min 40 secs

// Compare to

v.toString.tp  // Prints 100000000000
Inherited from
_Methods
Source
__.scala
inline def tag[A <: Double.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Float.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Long.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Int.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Short.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Char.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Byte.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag[A <: Boolean.Opaque](using d: Any.Def.Tag[
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tag: String
Inherited from
tag
Source
tag.scala
inline def tagBrief: String
Inherited from
_methods
Source
_methods.scala
inline def takeAfter(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

Copies String from the position where the specified v found plus the length of the v

If no v found, dflt v is returned, or original if dflt is void

   "abcdefg".copyAfter("cd").tp // Prints: efg
Value Params
string

position to start looking from

Inherited from
_copy
Source
_copy.scala
inline def takeAfterLast(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

Copies String from the last position the specified v found plus the length of the v

If no v found, dflt v is returned, or original if dflt is void.

   "abcd_abcd_abcd".takeFromLast("ab").tp // Prints: cd
Value Params
from

string last position to start looking from end to start

Inherited from
_copy
Source
_copy.scala
inline def takeBefore(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy start

Copy start

Copies String from the beginning until specified v found

If no v found, dflt v is returned, or original if dflt is void

   "abcdefg".takeBefore("ef").tp // Prints: abcd
Value Params
string

position to start looking from

Inherited from
_copy
Source
_copy.scala
inline def takeBeforeLast(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy start

Copy start

Copies String from the beginning until the last occurrence of specified v found

If no v found, dflt v is returned, or original if dflt is void

   "abcd_abcd_abcd".copyBeforeLast("ab").tp // Prints: abcd_abcd_
Value Params
from

string last position to start looking from end to start

Inherited from
_copy
Source
_copy.scala
inline def takeFirst(cnt: Int): String

Copy start

Copy start

Copies first given number of characters

The method call is inlined as Java x.substring(0,cnt)

Inherited from
_copy
Source
_copy.scala
inline def takeFrom(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

Copies String from the position where the specified v found

If no v found, dflt v is returned, or original if dflt is void

   "abcdefg".takeFrom("cd").tp // Prints: cdefg
Value Params
string

position to start looking from

Inherited from
_copy
Source
_copy.scala
inline def takeFromLast(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

Copies String from the last position the specified v found

If no v found, dflt v is returned, or original if dflt is void.

   "abcd_abcd_abcd".takeFromLast("ab").tp // Prints: abcd
Value Params
from

string last position to start looking from end to start

Inherited from
_copy
Source
_copy.scala
inline def takeLast(cnt: Int): String

Copy end

Copy end

Copies last given number of characters

The method call is inlined as Java x.substring(x.length - cnt, x.length)

Inherited from
_copy
Source
_copy.scala
inline def takeRange(r: Int.Range): String

Copy range

Copy range

Copies only range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def takeRange(start: Int, size: Int): String

Copy range

Copy range

Copies only range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def takeRange[A](r: Int.Range)(using s: Specialized[A]): s.Array

Take range

Take range

Copies given range of elements a new array

Inherited from
_methods
Source
_methods.scala
inline def takeRange[A](start: Int, size: Int)(using s: Specialized[A]): s.Array

Take range

Take range

Copies given range of elements a new array

Inherited from
_methods
Source
_methods.scala

Boolean option conversion

Boolean option conversion

Converts String to Boolean option

 "true".toBooleanOpt.tp

 "abc".toBooleanOpt.tp

 // Output
 Boolean.Opt(true)
 Boolean.Opt(VOID)
Inherited from
_transform
Source
_transform.scala
inline def toBooleanResult: Result[Boolean]

Boolean result conversion

Boolean result conversion

Converts String to Boolean result

 "true".toBooleanResult.tp

 "abc".toBooleanResult.tp

 // Output
 Result(true)
 Result(Problem(For input string: "abc"))
Inherited from
_transform
Source
_transform.scala
inline def toByte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
_methods
Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
_methods
Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
_methods
Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
_methods
Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
_methods
Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
_methods.scala

Double option conversion

Double option conversion

Converts String to Double option

 "123.45".toDoubleOpt.tp

 "abc".toDoubleOpt.tp

 // Output
 Double.Opt(123.45)
 Double.Opt(VOID)
Inherited from
_transform
Source
_transform.scala
inline def toDoubleResult: Result[Double]

Double result conversion

Double result conversion

Converts String to Double result

 "123.45".toDoubleResult.tp

 "abc".toDoubleResult.tp

 // Output
 Result(123.45)
 Result(Problem(For input string: "abc"))
Inherited from
_transform
Source
_transform.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Int constructor attached to Boolean

true is converted to 1, false to 0

Inherited from
_methods
Source
_methods.scala
inline def toIntOpt: Int.Opt

Int opt conversion

Int opt conversion

Converts String to Int option

 "123".toIntOpt.tp

 "abc".toIntOpt.tp

 // Output
 Int.Opt(123)
 Int.Opt(VOID)
Inherited from
_transform
Source
_transform.scala
inline def toIntResult: Result[Int]

Int result conversion

Int result conversion

Converts String to Int result

 "123".toIntResult.tp

 "abc".toIntResult.tp

 // Output
 Result(123)
 Result(Problem(For input string: "abc"))
Inherited from
_transform
Source
_transform.scala
inline def tokenizedStream(separators: Stream[String]): Stream[(String, Int.Range, String)]

Stream of tokens

Stream of tokens

Multi token tokenizetion

Returns a Tuple including:

  • Separator preceding the token, empty for the first token
  • !.Range of the token in the text
  • String token
  val str: String = (1 <> 40).stream.makeString("")
  "Text to Tokenize:".tp.tp
  str.tp.tp
  ("Token", "Range", "String").tp
  str.tokenizedStream(Stream("000","111","222","333","444")).print

  // Output

  Text to Tokenize:

 12345678910111213141516171819202122232425262728293031323334353637383940

  (Token,Range,String)
  --- --------- -------------------
  ?   ?         ?
  --- --------- -------------------
       0 <>> 11 12345678910
  111 14 <>> 33 2131415161718192021
  222 36 <>> 55 3242526272829303132
  333 58 <>> 71 4353637383940
  --- --------- -------------------
Value Params
separators

a Stream of text separators to consider

Inherited from
_transform
Source
_transform.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
_methods.scala
inline def toLongOpt: Long.Opt

Long option conversion

Long option conversion

Converts String to Long option

  "123".toLongOpt.tp

  "abc".toLongOpt.tp

  // Output
  Long.Opt(123)
  Long.Opt(VOID)
Inherited from
_transform
Source
_transform.scala
inline def toLongResult: Result[Long]

Long result conversion

Long result conversion

Converts String to Long result

  "123".toLongResult.tp

  "abc".toLongResult.tp

  // Output
  Result(123)
  Result(Problem(For input string: "abc"))
Inherited from
_transform
Source
_transform.scala
inline def toNumber: java.lang.Double

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
_methods.scala
inline def toNumber: java.lang.Float

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
_methods.scala
inline def toNumber: java.lang.Long

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
_methods.scala
inline def toNumber: java.lang.Integer

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
_methods.scala
inline def toNumber: java.lang.Short

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
_methods.scala
inline def toNumber: java.lang.Byte

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
_methods.scala
inline def toRef: java.lang.Character

Make Character

Make Character

Attached Character constructor

Inherited from
_methods
Source
_methods.scala
inline def toRef: java.lang.Boolean

To Boolean object

To Boolean object

val b = true

b.toRef
// is inlined as
java.lang.Boolean.valueOf(b)
Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Returns underlying value

Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
_methods.scala
inline def tp[A](using t: Any.Def.Tag[A]): Unit

Tag print

Tag print

tp should be pronounced as "tip"

tp is a functional equivalent to println for debugging, education and demonstration purposes

tp should never be inside a production program, println should be used instead. Searching code for tp should immediately locate debugging fragments.

// Compare:

1.tp
// vs.
println(1.tag)

(1 <> 10).stream.tp
// vs.
println((1 <> 10).stream.tag)

100.Seconds.tp
// vs.
println(100.Seconds.tag)

Also, there is postfix like overload of tp on String type

"Results:" +- 1 +- 2 +- 3 +- 4.Percent tp()
// vs.
println("Results:" +- 1 +- 2 +- 3 +- 4.Percent)
Inherited from
_Methods
Source
__.scala
inline def tp[A <: Any.Double](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Float](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Long](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Int](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Short](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Char](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Byte](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp[A <: Any.Boolean](using d: Any.Def.Tag[
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def tp(v: Unit): Unit
Inherited from
tp
Source
tp.scala
inline def tp: Unit
Inherited from
tp
Source
tp.scala
inline def trim: String

Trim both ends

Trim both ends

Trims both ends of String from space Chars

Inherited from
_modify
Source
_modify.scala
inline def trimBoth(f: Char => Boolean): String

Trim both ends

Trim both ends

Trims both ends of String from Chars defined by let function

   "yyxxxxABCxxyyxx".trimBoth(_ in 'x' <> 'z') tp           // Prints: ABC

   "yyxxxxABCxxyyxx".trimBoth(c => c == 'x' || c == 'y').tp // Prints: ABC
Inherited from
_modify
Source
_modify.scala
inline def trimEnd(f: Char => Boolean): String

Trim end

Trim end

Trims end of String from Chars defined by let function

   "ABCxxyyxx".trimEnd(_ in 'x' <> 'z') tp           // Prints: ABC

   "ABCxxyyxx".trimEnd(c => c == 'x' || c == 'y').tp // Prints: ABC
Inherited from
_modify
Source
_modify.scala
inline def trimEnd: String

Trim end

Trim end

Trims end of String from space Chars

Inherited from
_modify
Source
_modify.scala
inline def trimStart(f: Char => Boolean): String

Trim start

Trim start

Trims start of String from Chars defined by let function

   "yyxxxxABC".trimStart(_ in 'x' <> 'z') tp           // Prints: ABC

   "yyxxxxABC".trimStart(c => c == 'x' || c == 'y').tp // Prints: ABC
Inherited from
_modify
Source
_modify.scala
inline def trimStart: String

Trim start

Trim start

Trims start of String from space Chars

Inherited from
_modify
Source
_modify.scala
inline def upper: Char

Make upper case

Make upper case

Inlines call to java.lang.Character.toUpperCase

Inherited from
_methods
Source
_methods.scala
inline def upper: String

toUpperCase

toUpperCase

Creates new String with all lower case Chars changed to upper case

"aBc".upper.tp // Prints: ABC
Inherited from
_modify
Source
_modify.scala
inline def voidFirstView[A](using Any.Def.Void[
Inherited from
_methods
Source
Ordering.scala
inline def voidLastView[A](using Any.Def.Void[
Inherited from
_methods
Source
Ordering.scala

Make

inline def Big: BigDecimal

Make BigDecimal

Make BigDecimal

BigDecimal constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Big: BigDecimal

Make BigDecimal

Make BigDecimal

BigDecimal constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Big: BigInteger

Make BigInteger

Make BigInteger

BigInteger constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Big: BigInteger

Make BigInteger

Make BigInteger

BigInteger constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def ByteCount: ByteCount

Make ByteCount

Make ByteCount

ByteCount constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def ByteCount: ByteCount

Make ByteCount

Make ByteCount

ByteCount constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Day: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Day: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Day: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Day: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Days: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Days: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Days: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Days: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Hour: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Hour: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Hour: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Hour: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Hours: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Hours: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Hours: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Hours: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Micros: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Micros: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Micros: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Micros: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Millis: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Millis: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Millis: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Millis: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Minute: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Minute: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Minute: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Minute: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Minutes: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Minutes: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Minutes: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Minutes: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Nanos: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Nanos: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Nanos: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Nanos: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Percent: Percent

Make Percent

Make Percent

Percent constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Percent: Percent

Make Percent

Make Percent

Percent constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Percent: Percent

Make Percent

Make Percent

Percent constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Percent: Percent

Make Percent

Make Percent

Percent constructor attached to Int

Inherited from
_methods
Source
_methods.scala

To Problem

To Problem

Creates Result.Problem, where the base String becomes problem message

Inherited from
_transform
Source
_transform.scala
inline def Second: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Second: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Second: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Second: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Seconds: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Seconds: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Seconds: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Seconds: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Week: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Week: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Week: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Week: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Weeks: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Double

Inherited from
_methods
Source
_methods.scala
inline def Weeks: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Float

Inherited from
_methods
Source
_methods.scala
inline def Weeks: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Weeks: Time.Length

Make Time.Length

Make Time.Length

Time.Length constructor attached to Int

Inherited from
_methods
Source
_methods.scala
inline def Year: Year

Make Year

Make Year

Year constructor attached to Long

Inherited from
_methods
Source
_methods.scala
inline def Year: Year

Make Year

Make Year

Year constructor attached to Int

Inherited from
_methods
Source
_methods.scala