iter icon indicating copy to clipboard operation
iter copied to clipboard

Closes #31. Add \iter\unique which returns an iterator with unique va…

Open alexkart opened this issue 7 years ago • 3 comments

Closes #31 . Add \iter\unique which returns an iterator with unique values.

alexkart avatar Nov 22 '17 14:11 alexkart

Sorry, specified wrong issue in the commit message (#37 instead of #31)

alexkart avatar Nov 22 '17 14:11 alexkart

Tell me if I'm wrong but this implementation goes against all advantages of using iterator (memory safe). Because in order to check the unicity we build up a big array in memory.... I don't see an implementation that would be valid though....

Neirda24 avatar Jun 13 '21 20:06 Neirda24

This specific operation is indeed not very optimal because it needs to go through the whole iterator.

drupol avatar Jun 13 '21 20:06 drupol