2018-08-31 08:23:57 +00:00
|
|
|
package enumerator
|
|
|
|
|
|
|
|
// Package enumerator 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
|
|
|
|
|
|
|
// TODO: Check enumerator use cases and add them to the examples folder.
|
|
|
|
|
|
|
|
// Enumerator stubs a NEO enumerator type.
|
|
|
|
type Enumerator struct{}
|
|
|
|
|
|
|
|
// Create creates a new enumerator from the given items.
|
|
|
|
func Create(items []interface{}) Enumerator {
|
|
|
|
return Enumerator{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Next returns the next item in the iteration.
|
|
|
|
func Next(e Enumerator) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Value returns the enumerator value.
|
|
|
|
func Value(e Enumerator) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-10-22 14:56:03 +00:00
|
|
|
// Concat concatenates the 2 given enumerators.
|
2018-08-31 08:23:57 +00:00
|
|
|
func Concat(a, b Enumerator) Enumerator {
|
|
|
|
return Enumerator{}
|
|
|
|
}
|