3 ms·
That's funny... I posted a few alternate java examples to his blog but it looks like the comment was rejected. (Perhaps because I said the lisp looked like vom
by ElliotSh 15y ago
That's funny... I posted a few alternate java examples to his blog but it looks like the comment was rejected.
(Perhaps because I said the lisp looked like vomit? but it does!)
int getMax(int... list) {
int max = list[0];
for (int i : list) max = Math.max(max, i);
return max;
}
or if you have a collection
Collections.min(list);
- mck- 15y agoSorry Elliot, but yes, that is why - you missed the point, just like you missed my Ugly Lisp code beware? The Lisp looks like vomit, because I wrote it with a Java mind. And for you to say that it looks like vomit, well.. I guess that's why ;) Your comment did not add any value to the discussion. However, it is emotionally loaded and might antagonize readers; I'd rather keep my blog clean.