You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your readme states that you provide "generic types to allow the user to swap out various data structures transparently. The interfaces provide operation for adding, removing, retrieving objects from collections as well as iterating over the collection using functional iterators."
How does this work? For example:
var myKey int16 = 1
table := NewHashTable(10)
var key types.Int16
// XXX: key = myKey
var value interface{} = myData
var err error
value, err = table.Put(key, value)
I don't understand how to assign myKey to the types.Int16 key.
Thank you.
The text was updated successfully, but these errors were encountered:
Your readme states that you provide "generic types to allow the user to swap out various data structures transparently. The interfaces provide operation for adding, removing, retrieving objects from collections as well as iterating over the collection using functional iterators."
How does this work? For example:
var myKey int16 = 1
table := NewHashTable(10)
var key types.Int16
// XXX: key = myKey
var value interface{} = myData
var err error
value, err = table.Put(key, value)
I don't understand how to assign myKey to the types.Int16 key.
Thank you.
The text was updated successfully, but these errors were encountered: