Skip to content
Snippets Groups Projects
Commit cdaeed64 authored by plw1g21's avatar plw1g21
Browse files

JHashtable.hs added to file, it has a basic hashtable, key will be the...

JHashtable.hs added to file, it has a basic hashtable, key will be the variable names, and value can be anything.
parent c4f8c730
No related branches found
No related tags found
No related merge requests found
import Data.HashTable.IO
newMap :: IO (BasicHashTable String a)
newMap = new :: IO (BasicHashTable String a)
insertMap :: BasicHashTable String a -> String -> a -> IO ()
insertMap = insert
-- Look up a value in the hash map by key
lookupMap :: BasicHashTable String a -> String -> IO (Maybe a)
lookupMap = Data.HashTable.IO.lookup
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment