Class MapFn<K extends ACell,​T extends ACell>

All Implemented Interfaces:
IValidated, IWriteable, IFn<T>

public class MapFn<K extends ACell,​T extends ACell> extends ADataFn<T>
  • Constructor Details

    • MapFn

      public MapFn(AMap<K,​T> m)
  • Method Details

    • wrap

      public static <K extends ACell,​ T extends ACell> MapFn<K,​T> wrap(AMap<K,​T> 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<K 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. SECURITY: Must halt and return false in O(1) time if limit of printing is exceeded otherwise DoS attacks may be possible.
      Specified by:
      print in class AObject
      Parameters:
      sb - BlobBuilder to append to
      limit - Limit of printing in string bytes
      Returns:
      True if fully printed within limit, false otherwise