Package com.flyingspaniel.nava.fp

Author:
Morgan Conrad

Code for using and linking together functions, inspired by javascript/Scala/Groovy. Functions may have an Object version, using Objects as inputs/outputs (generified by IN, OUT) For efficiency, there are specific versions dealing with primitive doubles and ints

Typical usage:

  1. Implement Fn (or Fn.Pdouble or Fn.Pint), perhaps by extending one of the Base classes.
  2. Check out the Fns class (and FPTest) for examples
  3. Combine your Fn with one of the utility methods from FP.
TODO - combine these somehow with Callbacks and CallbackExecutor for multi-threaded processing. Warning: Internally there is no real checking, so if you screw up you'll get a ClassCastException.