Interface IFn<T extends ACell>

Type Parameters:
T - Return type of function
All Known Implementing Classes:
AClosure, ADataFn, AFn, CoreFn, CorePred, Fn, KeywordFn, MapFn, MultiFn, SeqFn, SetFn

public interface IFn<T extends ACell>
Interface for invokable objects with function interface. "Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Context<ACell> context, ACell[] args)
    Invoke this function in the given context.
  • Method Details

    • invoke

      Context<T> invoke(Context<ACell> context, ACell[] args)
      Invoke this function in the given context.
      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