#import <symtable.h>
Public Member Functions | |
(BOOL) | - contains: |
checks if table contains mapping for key | |
(void) | - put:to: |
Adds a new entry to the table. | |
(id) | - get: |
gets mapping of id or nil | |
Protected Attributes | |
Cons * | list |
- (void) put: | (char *) | key | ||
to: | (id) | val | ||
Adds a new entry to the table.
Creates copy of the key.
borrows the value -- copy the reference, but don't free when we free the table.