Skip to content

MapPairs[K: Any #share, V: Any #share, H: HashFunction[K] val]

[Source]

class ref MapPairs[K: Any #share, V: Any #share, H: HashFunction[K] val]

Constructors

create

[Source]

new ref create(
  m: HashMap[K, V, H] val)
: MapPairs[K, V, H] ref^

Parameters

Returns


Public Functions

has_next

[Source]

fun box has_next()
: Bool val

Returns


next

[Source]

fun ref next()
: (K , val->V) ?

Returns

  • (K , val->V) ?

Private Functions

_push

[Source]

fun ref _push(
  n: _MapNode[K, V, H] val)
: None val

Parameters

Returns


_backup

[Source]

fun ref _backup()
: None val ?

Returns


_inc_i

[Source]

fun ref _inc_i()
: None val ?

Returns


_cur

[Source]

fun box _cur()
: (_MapNode[K, V, H] val , USize val) ?

Returns