-
- All Implemented Interfaces:
public final class AnyExtension
-
-
Method Summary
Modifier and Type Method Description final static <E extends Any> Sequence<E>unfold(E $self, Function1<E, Sequence<E>> extractor)The opposite of fold. final static <T extends Any, P extends Position<P>> PtoPosition(T $self, Environment<T, P> environment)Tries to convert a concentration T into a valid position of type P descriptor. -
-
Method Detail
-
unfold
final static <E extends Any> Sequence<E> unfold(E $self, Function1<E, Sequence<E>> extractor)
The opposite of fold.
- Parameters:
extractor- A function that provides a sequence of elements given a specific element of the same type.
-
toPosition
final static <T extends Any, P extends Position<P>> P toPosition(T $self, Environment<T, P> environment)
Tries to convert a concentration T into a valid position of type P descriptor. Types are bound to the environment types.
-
-
-
-