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.

Correct Way to Define a Predicate Function in C++

I'm trying to write predicate function for use with STL algorithms. I see that they are two ways to define …

c++ stl predicate
How to use Dapper with Linq

I'm trying to convert from Entity Framework to Dapper to hopefully improve data access performance. The queries I use are …

c# linq expression dapper predicate
How to convert an Expression<Func<T, bool>> to a Predicate<T>

I have a method that accepts an Expression<Func<T, bool>> as a parameter. I would …

c# expression predicate
Delegates: Predicate vs. Action vs. Func

Can someone provide a good explanation (hopefully with examples) of these 3 most important delegates: Predicate Action Func

c# delegates predicate func
using std::find with a predicate

I want to use std::find function along with a predicate (not sure if I use the correct word). Here …

c++ vector find predicate
Combine Multiple Predicates

Is there any way in c# .NET 2.0! to combine multiple Predicates? Let's say I have the following code. List<…

c# .net-2.0 predicate
Am I using the copy_if wrong?

I am using visual studio 2010 and I am trying to use std::copy_if, I want to copy all values …

c++ predicate
Conditional where clause in JPA criteria query

I am facing an issue for JPA criteria query. How can I add multiple where clause in my Criteria Query …

jpa where-clause predicate criteria-api conditional-statements
Guava - How to remove from a list, based on a predicate, keeping track of what was removed?

I have an ArrayList to be filtered, and various Guava Predicates to filter it with. This list will have only 50…

java collections filtering guava predicate
Core Data: Query objectIDs in a predicate?

I am fetching a set of objects from a Core Data persistent store using a fetch request and a predicate. …

core-data predicate fetch