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, waitgetDisplayName, isPure, simplifypublic 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)
FunctionArguments and Assignments.public Signature getSignature()
FunctiongetSignature in interface FunctionOakGP Genetic Programming Framework