Skip to main content

Timeline for Write a function

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Jul 9, 2019 at 13:16 comment added Kevin Cruijssen It's a Java 8+ lambda function. So either of these two would work in this case. Here a more in depth explanation of Java 8+ lambdas in case you aren't familiar with them yet.
Jul 9, 2019 at 13:02 comment added pixma140 @Kevin Cruijssen I am no Java expert and I never used the Java array notation. How could I make your solution getting compiled? I initially "tested" my method in this TIO and then appended your approach there. Now, the compiler expects an identifier. Any explanation or wrong usage by me?
Jul 9, 2019 at 7:58 comment added Kevin Cruijssen I'm pretty sure f=a->a; is valid as well. :)
Jul 8, 2019 at 6:05 review Low quality posts
Jul 8, 2019 at 7:10
Jul 8, 2019 at 5:48 history answered pixma140 CC BY-SA 4.0