-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.cactoos.map.IterableAsMap #116
Comments
@yegor256 like this? public final class IterableAsMap<X,Y,Z>{
private final Iterable<X> iterable;
private final Func<X,Set<Y,Z>> mapping;
public IterableAsMap(Iterable<X> iterable, Func<X,Set<Y,Z>> func){} |
@Timmeey like this: MatcherAssert.assertThat(
"Can't convert iterable to map",
new IterableAsMap<>(
new AbstractMap.SimpleEntry<>(0, "hello, "),
new AbstractMap.SimpleEntry<>(1, "world!")
),
Matchers.hasEntry(
Matchers.equalTo(0),
Matchers.startsWith("hello")
)
); I'm working on it now... |
Merged
fixed in #118 |
@rultor release, tag is |
vivekimsit
added a commit
to vivekimsit/cactoos
that referenced
this issue
Jun 14, 2017
* upstream/master: yegor256#123: fixed yegor256#123: bug yegor256#121: fixed yegor256#121: bug doc doc blog names yegor256#116 package removed yegor256#119: StickyScalar fixed yegor256#116: IterableAsMap Switched to non Cached size Refactored IterableAsList to remove unnecessary call to size() and remove not working cache
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's create a new package and class.
The text was updated successfully, but these errors were encountered: