DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Partition in FluentIterable #1686

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all,

Can someone explain why partition was removed from FluentIterable? It seems 
like it would be really handy to have (for instance, a list of user ids could 
be filtered for certain values, then passed to partition to finally present an 
iterable of iterables (?) for GET query construction). 

It appears to have been removed here:

https://code.google.com/p/guava-libraries/source/detail?r=1a7e408ce9f1e2c256635d
6673595282fed8805a&path=/guava/src/com/google/common/collect/FluentIterable.java

Is there a better way of doing partitioning within FluentIterable that I'm 
missing?

Best,
Justin

Original issue reported on code.google.com by justinrm...@gmail.com on 27 Feb 2014 at 7:57

GoogleCodeExporter commented 9 years ago
We've gotten requests for two kinds of partitioning: "split into N groups, and 
split into groups of size N." We'd like to support both, so we'll need to find 
names for both. Probably both will have to be more specific than "partition," 
so we removed partition while we got it figured out. (I don't think we've 
figured it out yet :\)

Original comment by cpov...@google.com on 27 Feb 2014 at 8:04

GoogleCodeExporter commented 9 years ago
(For "split into N groups," see issue 451.)

Original comment by cpov...@google.com on 27 Feb 2014 at 8:07

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:09

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:07