Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

lambda

How to sort with a lambda?

by IT Nursery

sort(mMyClassVector.begin(), mMyClassVector.end(), [](const MyClass & a, const MyClass & b) { return a.mProperty > b.mProperty; }); I’d like to use a lambda function … Read more

Tags c, char, constants, lambda, sorting

What are functional interfaces used for in Java 8?

by IT Nursery

I came across a new term in Java 8: “functional interface”. I could only find one use of it while working with lambda … Read more

Tags functional-interface, java, java-8, lambda

In Java 8 how do I transform a Map to another Map using a lambda?

by IT Nursery

I’ve just started looking at Java 8 and to try out lambdas I thought I’d try to rewrite a very simple thing I … Read more

Tags java, java-8, java-stream, lambda, map

LINQ: “contains” and a Lambda query

by IT Nursery

I have a List<BuildingStatus> called buildingStatus. I’d like to check whether it contains a status whose char code (returned by GetCharCode()) equals some … Read more

Tags .net, c, lambda, linq, list

Using member variable in lambda capture list inside a member function

by IT Nursery

The following code compiles with gcc 4.5.1 but not with VS2010 SP1: #include <iostream> #include <vector> #include <map> #include <utility> #include <set> #include … Read more

Tags c, c++11, lambda, visual-studio-2010

Why can lambdas be better optimized by the compiler than plain functions?

by IT Nursery

In his book The C++ Standard Library (Second Edition) Nicolai Josuttis states that lambdas can be better optimized by the compiler than plain … Read more

Tags c, c++11, compiler-optimization, lambda, optimization

delegate keyword vs. lambda notation

by IT Nursery

Once it is compiled, is there a difference between: delegate { x = 0; } and () => { x = 0 } … Read more

Tags .net, anonymous-methods, c, delegates, lambda

Move capture in lambda

by IT Nursery

How do I capture by move (also known as rvalue reference) in a C++11 lambda? I am trying to write something like this: … Read more

Tags c, c++11, lambda, rvalue-reference

Can a java lambda have more than 1 parameter?

by IT Nursery

In Java, is it possible to have a lambda accept multiple different types? I.e: Single variable works: Function <Integer, Integer> adder = i … Read more

Tags java, java-8, lambda

How to convert a String to its equivalent LINQ Expression Tree?

by IT Nursery

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

Tags antlr, c, dsl, lambda, predicate
Older posts
Page1 Page2 … Page8 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery
x
x