exports a function to create a linked hashmap. The creator function accepts an optional array argument holding the values to start with.
linkedHashmap.get([value], offset)
- value: the value to start from, if ommitted will start from head
- offset: the number offset to get to the value offsetted from the value given as first parameter (if positive will navigate from the value given to the next, if negative will navigate from value given to previous)
the value retrieved
linkedHashmap.set(value, [next])
- value: the value to add to the map
- next: the value before which to insert the new value
linkedHashmap.pop([value])
- value: the value to pop from the map
the popped value
linkedHashmap.next(value)
- value: the value from which to get the next
the next value from the one passed as parameter
linkedHashmap.previous(value)
- value: the value from which to get the previous
the previous value from the one passed as parameter
linkedHashmap.size()
number of elements in the linked hashmap