Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    \$\begingroup\$ Recursion beating iteration in Java is rare enough to notice! \$\endgroup\$ Commented Jan 28, 2021 at 15:22
  • \$\begingroup\$ You actually can do recursion with lambda, but no one on this site ever uses it, so I am not sure how it should be counted. 57 bytes \$\endgroup\$ Commented Mar 7, 2021 at 5:19
  • 1
    \$\begingroup\$ It's called named lambda and it's not usable in Java because the full lambda type should've present, that means having all the parameter types. Unless you use an existing functional interface, in which case you need to give the full interface name. In short, it's usable in some languages but not in Java. \$\endgroup\$ Commented Mar 7, 2021 at 9:28
  • \$\begingroup\$ Oh, my apologies. Could you do something like this, then? @Olivier Grégoire \$\endgroup\$ Commented Mar 7, 2021 at 10:14
  • \$\begingroup\$ I'm not so sure... Now it looks more like a snippet instead of a function, lambda or full program. \$\endgroup\$ Commented Mar 7, 2021 at 11:29