From 19c718bd0de419892cd6ce87cc7e17ce0280d75c Mon Sep 17 00:00:00 2001 From: hman523 Date: Tue, 17 Dec 2019 22:47:55 -0500 Subject: [PATCH] Added clearification that closures are refered to lambdas in some contexts --- src/expressions/closure-expr.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/expressions/closure-expr.md b/src/expressions/closure-expr.md index 74b8e203c..f49ae697e 100644 --- a/src/expressions/closure-expr.md +++ b/src/expressions/closure-expr.md @@ -12,13 +12,13 @@ > _ClosureParam_ :\ >    [_OuterAttribute_]\* [_Pattern_] ( `:` [_Type_] )? -A _closure expression_ defines a closure and denotes it as a value, in a single -expression. A closure expression is a pipe-symbol-delimited (`|`) list of -irrefutable [patterns] followed by an expression. Type annotations may optionally be added -for the type of the parameters or for the return type. If there is a return -type, the expression used for the body of the closure must be a normal -[block]. A closure expression also may begin with the -`move` keyword before the initial `|`. +A _closure expression_, also know as a lambda expression or a lambda, defines a +closure and denotes it as a value, in a single expression. A closure expression +is a pipe-symbol-delimited (`|`) list of irrefutable [patterns] followed by an +expression. Type annotations may optionally be added for the type of the +parameters or for the return type. If there is a return type, the expression +used for the body of the closure must be a normal [block]. A closure expression +also may begin with the `move` keyword before the initial `|`. A closure expression denotes a function that maps a list of parameters onto the expression that follows the parameters. Just like a [`let` binding], the @@ -83,4 +83,4 @@ Attributes on closure parameters follow the same rules and restrictions as [_Pattern_]: ../patterns.md [_Type_]: ../types.md#type-expressions [`let` binding]: ../statements.md#let-statements -[_OuterAttribute_]: ../attributes.md \ No newline at end of file +[_OuterAttribute_]: ../attributes.md