Skip to content

Anomyous fucntion

Overview

The lambda is not has the name itself, hard to debug

In python:

Usage

Lambda functions are mostly used as one-liners. They’re used very often within higher-order functions like map() and filter(). This is because anonymous functions are passed as arguments to higher-order functions, which is not only done in Python programming.

lambda x: x * 100
<function <lambda> at 0x00000188FFE7EF70>

Is this function

The context of lambda should be:

Internal concept boundary component

AST parse

The lambda is not has the name itself, hard to debug

Reference

https://www.sitepoint.com/python-lambda-functions/