Home

Functional JVM language APIs side-by-side

Description Clojure Groovy Java 8 Scala Xtend
Select all elements of a collection that satisfy a predicate
(filter c)
c.findAll
c.stream().filter()
c.filter
c.filter
Build a new collection by transforming all elements of a given collection

                    
c.collect
c.stream().map()
c.map
c.map
Transform a collection c to a map

                    
c.collectEntries

                    
c.groupBy()
c.toMap()
c.groupBy[computedKey]
c.toMap[?]

Resources


Date published:
Date modified: 2015-09-17
Keywords: scala, groovy, clojure, xtend, java, jvm, polyglot