Skip to content

Commit 7edbe0f

Browse files
Update library/src/scala/quoted/matching/Lambda.scala
Co-Authored-By: Fengyun Liu <liu@fengy.me>
1 parent a3b0e2b commit 7edbe0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/quoted/matching/Lambda.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package matching
44
/** Lambda expression extractor */
55
object Lambda {
66

7-
/** `case Lambda(body)` matche a lambda and extract the body.
7+
/** `case Lambda(fn)` matches a lambda by lifting the function from `S => T` to `Expr[S] => Expr[T]`.
88
* As the body may (will) contain references to the paramter, `body` is a function that recieves those arguments as `Expr`.
99
* Once this function is applied the result will be the body of the lambda with all references to the parameters replaced.
1010
* If `body` is of type `(T1, T2, ...) => R` then body will be of type `(Expr[T1], Expr[T2], ...) => Expr[R]`.

0 commit comments

Comments
 (0)