Skip to content

Split

[Source]

primitive val Split

Constructors

create

[Source]

new val create()
: Split val^

Returns


Public Functions

on

[Source]

Split s on occurrences of sep. Adjacent separators produce empty-string entries. Returns a fresh val array of fresh val String slices (one per part).

fun box on(
  s: String box,
  sep: String box)
: (Array[String val] val | InvalidUtf8 val)

Parameters

Returns


lines

[Source]

Split on line terminators: any of "\r\n", "\n", or "\r". Terminators are removed from the parts. A trailing terminator does NOT produce a trailing empty entry (mirrors common line-reader semantics).

fun box lines(
  s: String box)
: (Array[String val] val | InvalidUtf8 val)

Parameters

Returns


eq

[Source]

fun box eq(
  that: Split val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: Split val)
: Bool val

Parameters

Returns