mint.hash - Palamecia/mint GitHub Wiki

Module

load mint.hash

This module provides a set of functions to perform extra operations on hashes.

Functions

Descriptions

contains

def (const self, key)

Returns true if self contains the key key; otherwise returns false.

get

def (const self, key, defaultValue = none)

Returns the value associated to key if contained in self; otherwise returns defaultValue. The content of self is not modified.

items

def (const self)

Returns an iterator on each item contained in self.

keys

def (const self)

Returns an iterator on each key contained in self.

values

def (const self)

Returns an iterator on each value contained in self.