Module xl.core

Interface LongToShort


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

    Modifier and Type
    Method
    Description
    short
    evaluateShort(long x)
    Computes the value of this function at x.
  • Method Details

    • evaluateShort

      short evaluateShort(long x)
      Computes the value of this function at x.
      Parameters:
      x - where the function is to be evaluated
      Returns:
      function value at x