Class StreamAnyMatch

All Implemented Interfaces:
JepComponent, PostfixMathCommandI, Serializable

public class StreamAnyMatch extends BinaryFunction implements JepComponent
Tests a predicate against sequence.
[1,2,3] . anyMatch(  x => x%2==0); // true
[1,3,5] . anyMatch(  x => x%2==0); // false
[2,4,6] . allMatch(  x => x%2==0); // true
[1,2,3] . allMatch(  x => x%2==0); // false
[1,3,5] . noneMatch( x => x%2==0); // true
[1,2,3] . noneMatch( x => x%2==0); // false
See Also:
  • Constructor Details

  • Method Details