Package coneforest.psylla.core
Class PsyProc
- java.lang.Object
-
- coneforest.psylla.core.PsyArray
-
- coneforest.psylla.core.PsyProc
-
- All Implemented Interfaces:
PsyAppendable<PsyObject>
,PsyArraylike<PsyObject>
,PsyClearable
,PsyContainer<PsyObject>
,PsyConvertableToName
,PsyConvertableToString
,PsyIndexed<PsyInteger,PsyObject>
,PsyIterable<PsyObject>
,PsyLengthy
,PsyObject
,PsyStreamlike<PsyObject>
,Iterable<PsyObject>
public class PsyProc extends PsyArray
An implementation of Ψ-proc
, a procedure.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends PsyObject,R extends PsyObject>
Function<T,R>asFunction(Interpreter interpreter)
<T extends PsyObject>
Predicate<T>asPredicate(Interpreter interpreter)
<T extends PsyObject>
UnaryOperator<T>asUnaryOperator(Interpreter interpreter)
void
invoke(Interpreter interpreter)
Invoke this object in the context of an interpreter.PsyProc
psyBind()
PsyProc
psyClone()
Returns a clone of this object.String
toSyntaxString()
-
Methods inherited from class coneforest.psylla.core.PsyArray
delete, extract, get, insert, iterator, length, psyAppend, psyBinarySearch, psyClear, psyExtractInterval, psyGetInterval, psySetLength, psySlice, psySort, psyStream, put
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface coneforest.psylla.core.PsyAppendable
psyAppendAll
-
Methods inherited from interface coneforest.psylla.core.PsyArraylike
psyCount, psyDelete, psyEntries, psyExtract, psyGet, psyGetAll, psyInsert, psyInsertAll, psyKeys, psyKnown, psyPostChop, psyPreChop, psyPrepend, psyPrependAll, psyPut, psyPutInterval, psyReplicate, psyReverse, psyValues, toSyntaxStringHelper
-
Methods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty
-
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyFilter, psyForAll, psyMap, psyToArray, psyUnite
-
Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, psyIsEmpty, psyLength
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Methods inherited from interface coneforest.psylla.core.PsyStreamlike
psyConcat
-
-
-
-
Method Detail
-
invoke
public void invoke(Interpreter interpreter)
Description copied from interface:PsyObject
Invoke this object in the context of an interpreter. Pushes this object into interpreter’s operand stack.- Parameters:
interpreter
- an interpreter.
-
psyClone
public PsyProc psyClone()
Description copied from interface:PsyObject
Returns a clone of this object.
-
toSyntaxString
public String toSyntaxString()
-
psyBind
public PsyProc psyBind()
-
asPredicate
public <T extends PsyObject> Predicate<T> asPredicate(Interpreter interpreter)
-
asFunction
public <T extends PsyObject,R extends PsyObject> Function<T,R> asFunction(Interpreter interpreter)
-
asUnaryOperator
public <T extends PsyObject> UnaryOperator<T> asUnaryOperator(Interpreter interpreter)
-
-