Re:Why it’s hard for programmers to write a program to flatt...
by zzzcpan on Friday February 24, 2017 @02:18PM
(#13726731)
You can make it nicer and more reliable with Perl:
However, this is not something a Java/OO programmer would be comfortable with, especially under the stress of the interview. As it's a bit higher level and closer to a functional way of thinking, than OO.
[ Parent
| on HN ]
Re:Why it’s hard for programmers to write a program to flatt...
by cestith on Friday February 24, 2017 @02:23PM
(#13726783)
I started to use map, but I've been told time and again anything that does is not a trivial example because you start by explaining what map does.
Anyway, I'm glad the first response to "this is trivial in Perl" is another, simpler Perl response rather than "Perl is dead".