public final class Map extends Object implements Function
Returns a new collection that exists of the result of applying the function (specified by the first argument) to each element of the collection (specified by the second argument).
Constructor and Description |
---|
Map(Type from,
Type to)
Creates a higher order functions that applies a function to each element of a collection.
|
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Arguments arguments,
Assignments assignments)
Returns the result of applying this operation to the specified
Arguments and Assignments . |
Signature |
getSignature()
Returns the return type and argument types associated with this function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, isPure, simplify
public Map(Type from, Type to)
from
- the type of the elements contained in the collection provided as an argument to the functionto
- the type of the elements contained in the collection returned by the functionpublic Object evaluate(Arguments arguments, Assignments assignments)
Function
Arguments
and Assignments
.public Signature getSignature()
Function
getSignature
in interface Function
OakGP Genetic Programming Framework