robb / Asterism

Asterism is yet another functional toolbelt for Objective-C. It tries to be typesafe and simple.
http://robb.github.io/Asterism/
MIT License
226 stars 12 forks source link

Add ASTIndexBy #19

Closed robb closed 10 years ago

robb commented 10 years ago

This is a naive implementation that doesn't make any guarantee to what happens if multiple elements have the same return path.

Closes #16

robb commented 10 years ago

Also, maybe this should be ASTIndex or we rename ASTGroup to ASTGroupBy

felixvisee commented 10 years ago

Any plans for something like ASTIndexOf?

robb commented 10 years ago

Yup

robb commented 10 years ago

If we did anything like last one wins then that would only work for collections with an order guarantee and then I'd also rather return a dictionary of arrays in ASTGroup.

felixvisee commented 10 years ago

Whoops, totally overlooked ASTIndexOf.. it's not it wasn't in the readme man :P

robb commented 10 years ago

Dude, we're agile!