HashMap.take

Remove and expose the element associated with key

param: a key param: a value reference (where returned value will reside)

  1. bool take(V element)
  2. bool take(K key, V value)
    class HashMap(K, V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
    final
    bool
    take
    (
    K key
    ,
    ref V value
    )

Return Value

Type: bool

whether the key is contained or not

Time complexity: O(1) average, O(n) worst

Meta