Top "Predicate" questions

A Predicate is a method which represents a set of criteria and decides for a given object if these criteria are fulfilled or not.

How to wait until an element is present in Selenium?

I'm trying to make Selenium wait for an element that is dynamically added to the DOM after page load. Tried …

java selenium selenium-webdriver wait predicate
What is a predicate in c#?

I am very new to using predicates and just learned how to write: Predicate<int> pre = delegate(int …

c# .net vb.net predicate
How to negate a method reference predicate

In Java 8, you can use a method reference to filter a stream, for example: Stream<String> s = ...; long …

java predicate java-8 negate
Using Predicate in Swift

I'm working through the tutorial here (learning Swift) for my first app: http://www.appcoda.com/search-bar-tutorial-ios7/ I'm stuck on …

ios objective-c swift ios7 predicate
Predicate Delegates in C#

Can you explain to me: What is a Predicate Delegate? Where should we use predicates? Any best practices when using …

c# .net predicate
List<object>.RemoveAll - How to create an appropriate Predicate

This is a bit of noob question - I'm still fairly new to C# and generics and completely new to …

c# generics delegates lambda predicate
Find first element in a sequence that matches a predicate

I want an idiomatic way to find the first element in a list that matches a predicate. The current code …

python predicate
Predicate in Java

I am going through the code which uses Predicate in Java. I have never used Predicate. Can someone guide me …

java guava predicate
How to convert a String to its equivalent LINQ Expression Tree?

This is a simplified version of the original problem. I have a class called Person: public class Person { public string …

c# lambda antlr dsl predicate
C++ remove_if on a vector of objects

I have a vector (order is important) of objects (lets call them myobj class) where I'm trying to delete multiple …

c++ vector stl predicate