0

In Java I can import java.util.function.IntPredicate; and use a ready-made solution for example

public boolean satisfies(IntPredicate p) {
        return p.test(getChar());
}
satisfies(Character::isWhitespace);

Does something similar exist in C# ?

MaxB
  • 635
  • 1
  • 9
  • 22

0 Answers0