Add the tiger source code bundle from the book site
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
915660c8a7
commit
33d8bac511
87 changed files with 3252 additions and 0 deletions
9
tiger/chap4/table.sml
Normal file
9
tiger/chap4/table.sml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
functor IntMapTable (type key
|
||||
val getInt: key -> int) : TABLE =
|
||||
struct
|
||||
type key=key
|
||||
type 'a table = 'a IntBinaryMap.map
|
||||
val empty = IntBinaryMap.empty
|
||||
fun enter(t,k,a) = IntBinaryMap.insert(t,getInt k,a)
|
||||
fun look(t,k) = IntBinaryMap.find(t,getInt k)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue