package extras

/**
 *  Select all those elements from a list that match some criteria (predicate).
 */
import fp.*

	// aliasing
def map = Functor.map
def summation = Functor.summation

def ex = [[2, 3], [2, 1], [7, 8]]
def res = summation(map(summation, ex))
println "res: ${res}"
