discrimination-0.2.1: Fast generic linear-time sorting, joins and container construction.

Copyright(c) Edward Kmett 2015
LicenseBSD-style
MaintainerEdward Kmett <ekmett@gmail.com>
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Discrimination.Internal.WordMap

Description

This module suppose a Word64-based array-mapped PATRICIA Trie.

The most significant nybble is isolated by using techniques based on https://www.fpcomplete.com/user/edwardk/revisiting-matrix-multiplication/part-4 but modified to work nybble-by-nybble rather than bit-by-bit.

Synopsis

Documentation

singleton :: Key -> v -> WordMap v Source

Build a singleton WordMap

insert :: Key -> v -> WordMap v -> WordMap v Source

lookup :: Key -> WordMap v -> Maybe v Source

member :: Key -> WordMap v -> Bool Source

fromList :: [(Word64, v)] -> WordMap v Source