From 1a20fbff6ebf29b06ec6d9da1d47201ea1c10640 Mon Sep 17 00:00:00 2001 From: Jean-Paul Wilson Date: Sat, 6 Apr 2019 13:34:47 +0200 Subject: [PATCH] docs: shorten the description for clarity. (#29020) Change the first two sentences from "Lambda Expressions are ideally used when we have something simple to be done an we are more interested in quickly getting the job done rather than formally naming the function. Lambda expressions also known as anonymous functions." to instead read: "Lambda Expressions are used when an operation only has to be performed once, meaning that there is no need for defining a function as it will not be used again. Lambda expressions also known as anonymous functions, as they are not named (defined). " --- guide/english/python/lambda-expressions/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guide/english/python/lambda-expressions/index.md b/guide/english/python/lambda-expressions/index.md index 14a10b763d..a951777700 100644 --- a/guide/english/python/lambda-expressions/index.md +++ b/guide/english/python/lambda-expressions/index.md @@ -3,8 +3,7 @@ title: Lambda Expressions --- ## Lambda Expressions -Lambda Expressions are ideally used when we have something simple to be done an we are more interested in quickly getting the job done rather than formally naming the function. Lambda expressions are a short way to declare small and anonymous functions (it is not necessary to provide a name for lambda functions) in a concise way. -Help our community expand it. +Lambda Expressions are used when an operation only has to be performed once, meaning that there is no need for defining a function as it will not be used again. Lambda expressions also known as anonymous functions, as they are not named (defined). Lambda functions can contain only one expression, so they are not best suited for functions with control-flow statements.