Skip to content

Commit a56b403

Browse files
committed
Merge pull request elixir-lang#714 from chuckus/patch-1
Add reference to capture syntax for anonymous functions
2 parents efca95c + ab364d8 commit a56b403

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

getting-started/basic-types.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ iex> x
233233
42
234234
```
235235

236+
The capture syntax [`&()`](/docs/stable/elixir/Kernel.SpecialForms.html) can also be used for creating anonymous functions. This type of syntax will be discussed in [Chapter 8](/getting-started/models.html).
237+
236238
## (Linked) Lists
237239

238240
Elixir uses square brackets to specify a list of values. Values can be of any type:

0 commit comments

Comments
 (0)