Skip to content

add Enumerator APIs#244

Merged
erikzhang merged 3 commits intomasterfrom
feature/EnumeratorAPIs
May 26, 2018
Merged

add Enumerator APIs#244
erikzhang merged 3 commits intomasterfrom
feature/EnumeratorAPIs

Conversation

@erikzhang
Copy link
Member

@erikzhang erikzhang commented May 23, 2018

The NEP Non-fungible Token Standard needs Enumerator APIs.

  • Neo.Enumerator.Create
  • Neo.Enumerator.Next
  • Neo.Enumerator.Value
  • Neo.Enumerator.Concat
  • Neo.Iterator.Keys
  • Neo.Iterator.Values

erikzhang added 2 commits May 23, 2018 18:22
# Conflicts:
#	neo/SmartContract/StateReader.cs
@erikzhang erikzhang merged commit 8c6ee41 into master May 26, 2018
@erikzhang erikzhang deleted the feature/EnumeratorAPIs branch May 26, 2018 17:37
@dicarlo2
Copy link

Can we also get an Enumerator or (Enumerator-like) interface for iterating over the key value pairs of a Map? Similar to ArrayWrapper.

@erikzhang
Copy link
Member Author

Can we also get an Enumerator or (Enumerator-like) interface for iterating over the key value pairs of a Map? Similar to ArrayWrapper.

Good idea! See #251

@dicarlo2
Copy link

Awesome, thanks @erikzhang!

@localhuman
Copy link
Contributor

This is great! Does anyone have a test .avm I can use as I'm implementing?

lock9 pushed a commit to simplitech/neo that referenced this pull request Aug 3, 2018
Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants