package extras

/**
 *  Find the sum of all the elements in a list. The list comprises
 *    sub-lists of length two. All the values in these sub-lists are
 *    summed.
 */
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}"
