Skip to content

Sequence

[Source]

class ref Sequence

Constructors

create

[Source]

new ref create(
  items: (ReadSeq[(Object box | Sequence box | String box | I128 val | F64 val | Bool val | Null val)] box | None val) = reference)
: Sequence ref^

Parameters

Returns


from_iter[T: T]

[Source]

new ref from_iter[T: T](
  items: Iterator[T] ref,
  f: {(T!): Item}[T] box)
: Sequence ref^

Parameters

  • items: Iterator[T] ref
  • f: {(T!): Item}[T] box

Returns


Public Functions

size

[Source]

fun box size()
: USize val

Returns


contains

[Source]

fun box contains(
  key: USize val)
: Bool val

Parameters

Returns


apply

[Source]

fun box apply(
  i: USize val)
: (this->Object box | this->Sequence box | this->String box | 
    I128 val | F64 val | Bool val | 
    Null val) ?

Parameters

Returns


values

[Source]

fun box values()
: Iterator[(this->Object box | this->Sequence box | this->String box | I128 val | F64 val | Bool val | Null val)] ref

Returns


update

[Source]

fun ref update(
  i: USize val,
  value: (Object box | Sequence box | String box | 
    I128 val | F64 val | Bool val | 
    Null val))
: None val ?

Parameters

Returns


push

[Source]

fun ref push(
  item: (Object box | Sequence box | String box | 
    I128 val | F64 val | Bool val | 
    Null val))
: None val

Parameters

Returns


get_string

[Source]

fun box get_string(
  pretty: Bool val,
  indent: String val)
: String iso^

Parameters

Returns


string

[Source]

fun box string()
: String iso^

Returns