2018-08-31 08:23:57 +00:00
|
|
|
package iterator
|
|
|
|
|
|
|
|
// Package iterator provides function signatures that can be used inside
|
2019-08-15 16:41:51 +00:00
|
|
|
// smart contracts that are written in the neo-go framework.
|
2018-08-31 08:23:57 +00:00
|
|
|
|
|
|
|
// Iterator stubs a NEO iterator object type.
|
|
|
|
type Iterator struct{}
|
|
|
|
|
|
|
|
// Create creates an iterator from the given items.
|
|
|
|
func Create(items []interface{}) Iterator {
|
|
|
|
return Iterator{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Key returns the iterator key.
|
2019-09-03 14:51:37 +00:00
|
|
|
// TODO: Better description for this.
|
2018-08-31 08:23:57 +00:00
|
|
|
func Key(it Iterator) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Keys returns the iterator keys.
|
|
|
|
func Keys(it Iterator) []interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Values returns the iterator values.
|
|
|
|
func Values(it Iterator) []interface{} {
|
|
|
|
return nil
|
|
|
|
}
|