Trait Keyedpub

Source
:trait(pub) Keyed
  .lookup ( key (Self key val)  (Option val) )
  .contains-key ( key (Self key val)  Bool )
Description

Trait for collections that support key-indexed access. Independent of iteration order — does not require Foldable.

Required Methods

.lookup ( key (Self key val) (Option val) )

Return Some val if key is present, None otherwise. ( key (Self key val) -> (Option val) )

.contains-key ( key (Self key val) Bool )

Return true if key is present in the collection. ( key (Self key val) -> Bool )

Implementors

impl Keyed for HashMap