Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 101201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:43:32+00:00 2026-05-11T00:43:32+00:00

I am fairly new to programming and while doing a lot of reading this

  • 0

I am fairly new to programming and while doing a lot of reading this concept of a lambda keeps coming up but I’m having a hard time putting my finger on what it actually is and how implementing it will make my programming life so much better. So first, what is a lambda and second how might it be implemented?

Thanks to all who posted. As has been mentioned in the comments, this is a duplicate, but there are so many great answers here I want to preserve them for the community so I’m turning it into a community post. Here is the link to the other question:

What is a lambda (function)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:43:32+00:00Added an answer on May 11, 2026 at 12:43 am

    Lambda are hard to catch, but once you have pictured them, you cannot understand why you didn’t get it before.

    Lamdba are anonymous functions

    Lambda are ordinary functions, the only difference is that you don’t give them a name.

    To understand that, you must know first that when you create a function, the code is stored in memory at an address only knowned by the computer.

    So when you do something like that :

    function Foo () {  /* your code here */ } 

    What you really do is binding the name ‘Foo’ to the adress of the code in memory.

    Now, there is an other way to access an address : references (and pointers, but let’s skip this nasty guys)

    Well, a lambda function is a function that have no name, so it can be only access with its reference.

    How do you use them ?

    When you create a lambda function, you usually plan to use it only once.

    The step by step process is usually :

    1. Create the function
    2. Get the reference
    3. Pass the reference somewhere it will be used

    Finally, the reference is lost, and so the function is destroyed automatically.

    The typical use case is a callback function. You declare, create and pass the function in one row, so it’s handy.

    Example from the real word

    In Python, you can use lambda in list comprehensions :

    /* create a list of functions */ function_list = [(lambda x : number_to_add + x) for number_to_add in range(0, 10) ] 

    In Javascript, you usually pass a function to others functions. Example with JQuery :

     $('img').each(   /* here we pass a function without any name to the 'each()' method   */   function(i){  his.src = 'test'   i   '.jpg'; }   ); 

    The things you’d better know

    • Some languages, like Javascript or Lisp, make a massive use of lambdas. It can be for cultural reason, but the functional programming paradigm tends to lead to lambda-mania.

    • Long lambdas make the code hard to read. That’s why some languages restrain the possibilities of lambdas, such as Python that does not allow ‘if’ statement in them.

    • Lambdas are just normal functions. Where ever you use one, you can use an ordinary function instead. It’s just a matter of coding style.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Preload the data Do your own drawing May 11, 2026 at 11:18 am
  • added an answer The easiest way to fix this is to create a… May 11, 2026 at 11:18 am
  • added an answer Don't use kill -9. You want to trap on EXIT,… May 11, 2026 at 11:18 am

Related Questions

I am fairly new to programming and while doing a lot of reading this
I'm fairly new to C# programming. I am making a program for fun that
I am fairly new to Emacs and I have been trying to figure out
I am fairly new to WPF and I am having a problem with inheriting
I am fairly new to MySQL and have a project in which I need
I am fairly new to using infragistics controls (started yesterday). While they are (very)
I am fairly new to Rails and I was curious as to some of
Forgive me, for I am fairly new to C++, but I am having some
I'm fairly new to Visual Studio and am wondering how best to plan for
I am fairly new at using the ASP.NET MVC framework and was hoping that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.