Class SeqFn<T extends ACell>

Type Parameters:
T - Type of values to return
All Implemented Interfaces:
IValidated, IWriteable, IFn<T>

public class SeqFn<T extends ACell> extends ADataFn<T>
Wrapper for interpreting a sequence object as an invokable function
  • Constructor Details

  • Method Details

    • wrap

      public static <T extends ACell> SeqFn<T> wrap(ASequence<?> m)
    • invoke

      public Context<T> invoke(Context context, ACell[] args)
      Description copied from interface: IFn
      Invoke this function in the given context.
      Specified by:
      invoke in interface IFn<T extends ACell>
      Overrides:
      invoke in class ADataFn<T extends ACell>
      Parameters:
      context - Context in which the function is to be executed
      args - Arguments to the function
      Returns:
      Context containing result of function invocation, or an exceptional value
    • print

      public boolean print(BlobBuilder sb, long limit)
      Description copied from class: AObject
      Prints this Object to a readable String Representation
      Specified by:
      print in class AObject
      Parameters:
      sb - StringBuilder to append to
      limit - Limit of printing in string bytes
      Returns:
      True if fully printed, false otherwise