Class IteratorPackage

java.lang.Object
com.github.basking2.sdsai.itrex.packages.IteratorPackage
All Implemented Interfaces:
Package

public class IteratorPackage extends Object implements Package
This package groups functions that operate on iterators or lists.
  • Constructor Details

    • IteratorPackage

      public IteratorPackage()
  • Method Details

    • importTo

      public void importTo(Evaluator evaluator, String packageName)
      Description copied from interface: Package
      Import some set of functions into the given Evaluator.
      Specified by:
      importTo in interface Package
      Parameters:
      evaluator - The evaluator to import to.
      packageName - If not null, all functions should be registered under this package name, per the user's import request. That is, function names should be constructed as packageName +"."+functionName.
    • importFlatten2

      public void importFlatten2(Evaluator evaluator, String packageName)
      Build and register the "flatten2" function. This requires the curry and flatten functions to already be registered.
      Parameters:
      evaluator - The evaluator to register flatten2 against.
      packageName - The name of the package.