|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.functions.string.Split
public class Split
Splits the input string in two and returns a 2-tuple.
The split is based on the second argument, which can either be an integer or a character.
If it is an integer, then the first tuple member contains the input string up until the argument position ( without the letter at that position), while the second tuple member contains the rest of the string.
If the second argument is a character, then the first tuple member contains the input string up to the first occurrence of the character ( excluding this letter), while the second tuple member contains the rest of the string.
| Constructor Summary | |
|---|---|
Split()
|
|
| Method Summary | |
|---|---|
int |
getArity()
Returns the arity of the function. |
Cell |
perform(Cell[] args,
Evaluator e)
Returns a Cell object that is the root of a graph that represents the result of applying the built-in function to the arguments args. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Split()
| Method Detail |
|---|
public int getArity()
BuiltInFunction
getArity in interface BuiltInFunction
public Cell perform(Cell[] args,
Evaluator e)
BuiltInFunction
perform in interface BuiltInFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||