Skip to content

Conversation

@f-lima
Copy link

@f-lima f-lima commented Dec 12, 2016

ToArray returns the set as an array of elements.
I don't know if I used mapped types correctly, but at Java you just use toArray(), at .net you have ToArray(Of T) and at Cooca we need to call objectEnumerator().allObjects
Sometimes I have the necessity of get the elements of the set, then I added this function to do this.
I hope you can add it to Sugar.

ToArray returns the set as an array of elements.
I don't know if I used mapped types correctly, but at Java you just use toArray(), at .net you have ToArray(Of T) and at Cooca we need to call objectEnumerator().allObjects
Sometimes I have the necessity of get the elements of the set, then I added this function to do this.
I hope you can add it to Sugar.
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.

1 participant