Timeline for answer to Random Golf of the Day #1: Shuffle an Array by feersum
Current License: CC BY-SA 3.0
Post Revisions
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 4, 2018 at 7:47 | comment | added | null |
Instead of shuff interface, you can use predefined java.util.function.Consumer<int[]> functional interface.
|
|
| Mar 23, 2018 at 20:55 | comment | added | Khuldraeseth na'Barya |
Does the x need to be wrapped in parentheses?
|
|
| Feb 4, 2015 at 23:36 | comment | added | feersum | @Qwertiy To each his own... You think it's unfair, I think it's great. | |
| Feb 4, 2015 at 23:34 | comment | added | Qwertiy | I think, it's unfair for function to stop by exception in a normal case, is it? | |
| Feb 4, 2015 at 22:15 | comment | added | Rawling | Huh, if there's a meta post and a so-far-consensus then fire away. (And enjoy the two-lower golf score on me :p) | |
| Feb 4, 2015 at 19:53 | history | edited | feersum | CC BY-SA 3.0 |
deleted 4 characters in body
|
| Feb 4, 2015 at 19:52 | comment | added | feersum | @Rawling You could vote in this meta question. Currently, there are 9 votes in favor of lambdas, and 0 against. Yes, the parentheses can be removed. | |
| Feb 4, 2015 at 14:37 | comment | added | Rawling |
Isn't it cheating to use a lambda to get around having to write a function signature, when you have to supply a delegate in order to use the lambda anywhere? Also... can't you drop the parentheses around Math.random()?
|
|
| Feb 4, 2015 at 3:46 | history | edited | feersum | CC BY-SA 3.0 |
added 7 characters in body
|
| Feb 4, 2015 at 3:09 | history | edited | feersum | CC BY-SA 3.0 |
added 90 characters in body
|
| Feb 4, 2015 at 2:42 | history | answered | feersum | CC BY-SA 3.0 |