The code exactly as you typed should not work (extra space) and what you are seeing is most likely not an anonymous function. I don’t know where you get that code from but you are most likely seeing (d::Int)(x::Int) = d + x?
yuyichao
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to interpret this function with no name, and two sets of parenthesis | 3 | 101 | November 26, 2024 | |
| One-line function return lambda__anonymous function | 10 | 10984 | June 5, 2021 | |
| Fields of an anonymous function? | 8 | 813 | August 8, 2020 | |
| How to use anon. func + how to use web irc? | 7 | 613 | September 27, 2018 | |
| How to understand this "typemaker" function? | 2 | 399 | July 14, 2020 |