Package coneforest.psylla.core
Interface PsyIterable<T extends PsyObject>
-
- Type Parameters:
T
- a type of elements returned by the iterator.
- All Superinterfaces:
Iterable<T>
,PsyConvertableToName
,PsyConvertableToString
,PsyObject
,PsyStreamlike<T>
- All Known Subinterfaces:
PsyArraylike<T>
,PsyContainer<T>
,PsyDictlike<V>
,PsyQueuelike<T>
,PsySetlike<T>
,PsyStringy
- All Known Implementing Classes:
PsyArray
,PsyBitArray
,PsyBitSet
,PsyBlockingQueue
,PsyCommand
,PsyConfigDict
,PsyDict
,PsyErrorDict
,PsyModule
,PsyName
,PsyNamespace
,PsyProc
,PsyRomanNumerals
,PsySet
,PsyString
,PsySystemDict
public interface PsyIterable<T extends PsyObject> extends PsyStreamlike<T>, Iterable<T>
A representation of Ψ-iterable
, a type of an object that can be iterated over.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default PsyInteger
psyCount()
default PsyIterable<T>
psyFilter(PsyProc oProc)
Returns a Ψ-iterable
over elements of this object that satisfies the criterium calculated during Ψ-proc
invocation.default void
psyForAll(PsyObject oProc)
default PsyIterable<PsyObject>
psyMap(PsyProc oProc)
default PsyStream
psyStream()
default PsyArray
psyToArray()
default PsyString
psyUnite(PsyStringy oSeparator)
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Methods inherited from interface coneforest.psylla.core.PsyStreamlike
iterator, psyConcat
-
-
-
-
Method Detail
-
psyForAll
default void psyForAll(PsyObject oProc) throws PsyException
- Specified by:
psyForAll
in interfacePsyStreamlike<T extends PsyObject>
- Throws:
PsyException
-
psyFilter
default PsyIterable<T> psyFilter(PsyProc oProc) throws PsyException
Returns a Ψ-iterable
over elements of this object that satisfies the criterium calculated during Ψ-proc
invocation.- Parameters:
oProc
- a procedure- Returns:
- an iterable
- Throws:
PsyException
-
psyMap
default PsyIterable<PsyObject> psyMap(PsyProc oProc) throws PsyException
- Throws:
PsyException
-
psyToArray
default PsyArray psyToArray() throws PsyException
- Throws:
PsyException
-
psyCount
default PsyInteger psyCount()
- Specified by:
psyCount
in interfacePsyStreamlike<T extends PsyObject>
-
psyStream
default PsyStream psyStream()
-
psyUnite
default PsyString psyUnite(PsyStringy oSeparator) throws PsyException
- Throws:
PsyException
-
-