Module xl.core

Interface LongToShortGenerator


public interface LongToShortGenerator
Instances of LongToShortGenerator represent generator functions which take longs as input and yield sequences of values of type short. Such instances are created by lambda expressions of the XL programming language, e.g., LongToShortGenerator f = long x => short* some generator expression containing x;.
Author:
Ole Kniemeyer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generates the sequence of values for parameter x.
  • Method Details

    • evaluateShort

      void evaluateShort(ShortConsumer cons, long x)
      Generates the sequence of values for parameter x.
      Parameters:
      cons - each value is yielded to this consumer
      x - where the generator function is to be evaluated