killme2008 / aviatorscript

A high performance scripting language hosted on the JVM.
http://fnil.net/aviator/
4.66k stars 853 forks source link

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

Closed yanmount closed 5 years ago

yanmount commented 5 years ago

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 commented 5 years ago

Release 4.2.4 https://github.com/killme2008/aviator/releases/tag/aviator-4.2.4