Class SlimeStream


  • public final class SlimeStream
    extends Object
    Simple utility to bridge Slime and Streams.
    Author:
    ogronnesby
    • Method Detail

      • fromArray

        public static <T> Stream<T> fromArray​(Inspector array,
                                              Function<Inspector,​T> mapper)
        Create a stream from a Slime Inspector pointing to an array.
        Parameters:
        array - the array inspector
        mapper - the function mapping to Stream elements
        Returns:
        A Stream of array elements