|
|||||||||
| Home >> All >> [ silk overview ] | PREV NEXT | ||||||||
Uses of Class
silk.Pair
| Uses of Pair in silk |
| Fields in silk declared as Pair | |
static Pair |
Pair.EMPTY
The empty list. |
Pair |
LCO.params
|
| Methods in silk that return Pair | |
private static Pair |
Scheme.extractDefines(Pair defines,
Pair body)
Return a Pair who's first is a list of simple defines and who's rest is the remaining body. |
private static Pair |
Scheme.simplifyDefine(Pair definition)
|
static Pair |
U.toPair(java.lang.Object x)
Cast a Scheme object to a Pair (can't be the empty list). |
static Pair |
U.toList(java.lang.Object x)
Cast a Scheme object to a Pair or the empty list. |
static Pair |
U.list(java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
Creates a three element list. |
static Pair |
U.list(java.lang.Object a,
java.lang.Object b)
Creates a two element list. |
static Pair |
U.list(java.lang.Object a)
Creates a one element list. |
static Pair |
U.vectorToList(java.lang.Object[] vec)
|
static Pair |
U.arrayToList(java.lang.Object x)
|
static Pair |
U.map(Procedure proc,
java.lang.Object args,
Pair result)
Map proc over a list of lists of args. |
static Pair |
U.timeCall(Procedure proc,
int nTimes)
Call the procedure repeatedly nTimes, and return a list of the the last result, the elapsed time, and the memory used. |
| Methods in silk with parameters of type Pair | |
private static Pair |
Scheme.extractDefines(Pair defines,
Pair body)
Return a Pair who's first is a list of simple defines and who's rest is the remaining body. |
private static java.lang.Object |
Scheme.checkForDefines(Pair body)
Check for embedded defines this checks for any improperly embedded defines and also flattens the body |
private static Pair |
Scheme.simplifyDefine(Pair definition)
|
java.lang.Object |
Procedure.apply(Pair args)
Convert an argument list into an argument array, and call apply on that. |
java.lang.Object[] |
Procedure.makeArgArray(Pair args)
Convert a list of arguments into an array expected by the procedure. |
static java.lang.String |
U.stringAppend(Pair args)
|
static java.lang.Object |
U.numCompute(java.lang.Object x,
Pair args,
char op)
Compute (x op arg1 op arg2 op ...), in ints or doubles. |
static java.lang.Object |
U.numCompute(long result,
Pair args,
char op)
Compute (result op arg1 op arg2 op ...). |
static java.lang.Object |
U.numCompute(double result,
Pair args,
char op)
Compute (result op arg1 op arg2 op ...). |
static long |
U.gcd(Pair args)
|
static java.lang.Object |
U.append(Pair args)
|
static Pair |
U.map(Procedure proc,
java.lang.Object args,
Pair result)
Map proc over a list of lists of args. |
private boolean |
Pair.equalsFirst(Pair that)
|
(package private) static java.lang.Number |
Op.genericBinaryMultiOp(int op,
java.lang.Number acc,
Pair args)
|
static java.lang.Object |
Macro.expand(Pair x)
|
static java.lang.reflect.Method |
Invoke.findMethod(java.lang.String name,
java.lang.Object target,
Pair types)
Look up a particular method given its name, and the name of its declaring class, and a list of argument type names. |
static java.lang.reflect.Constructor |
Invoke.findConstructor(java.lang.Object target,
Pair types)
Look up a particular constructor given its name, and the name of its declaring class, and a list of argument type names. |
static java.lang.Class[] |
Invoke.toClassArray(Pair types,
int n)
|
static Generic |
Generic.defineMethod(Symbol name,
Pair types,
Procedure p)
|
java.lang.Object |
Function.invoke(Pair args)
|
java.lang.Object |
Function.invoke1(Pair args)
|
| Constructors in silk with parameters of type Pair | |
LCO(java.lang.Object func,
Pair params)
|
|
|
|||||||||
| Home >> All >> [ silk overview ] | PREV NEXT | ||||||||