Class MakeSplice

All Implemented Interfaces:
Named

public class MakeSplice extends Procedure1
A pseudo-function whose argument is splice into an outer argument list. Represented by ($splice$ arg). If arg is the list or array [a b c] then (fun x ($splice$ arg) y) is (fun x a b c y). Processed at compile-time only.
  • Field Details

    • instance

      public static final MakeSplice instance
    • keywordsAllowedInstance

      public static final MakeSplice keywordsAllowedInstance
    • quoteInstance

      public static final QuoteExp quoteInstance
    • quoteKeywordsAllowedInstance

      public static final QuoteExp quoteKeywordsAllowedInstance
  • Method Details

    • getKeywordsAllowed

      public boolean getKeywordsAllowed()
    • argIfSplice

      public static Expression argIfSplice(Expression exp)
    • apply1

      public Object apply1(Object arg1) throws Throwable
      Specified by:
      apply1 in class Procedure1
      Throws:
      Throwable
    • count

      public static int count(Object values)
    • copyTo

      public static void copyTo(Object[] target, int start, int size, Object values)
    • copyTo

      public static void copyTo(Object target, int start, int size, Object values, Type elementType)
    • addAll

      public static void addAll(ArrayList<Object> list, Object values)
      Helper method called by compiled code.