Skip to content
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

suggestion that the "map" method accepts map parameter #164

Closed
yanmount opened this issue Sep 12, 2019 · 1 comment
Closed

suggestion that the "map" method accepts map parameter #164

yanmount opened this issue Sep 12, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@yanmount
Copy link

a=seq.map('k1', 'v1', 'k2', 'v2');
b=map(a,lambda(x) -> x.value end)
above code show the intention to convert a map to a list with only key or value, but encounter runtime error:
Caused by: java.lang.IllegalArgumentException: <JavaType, {k1=v1, k2=v2}, HashMap> is not a seq.
map variable can be considered as some kind of collection as map.entry. isn't

@killme2008
Copy link
Owner

@killme2008 killme2008 added this to the 4.2.4 milestone Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants