L
Laura Raffa
Hi,
I have no experience with Ruby, but there is currently a debate in the
office about Python over Perl, Java, C++ etc. It's a simple programming
example:
find and print all words ending with some predefined suffix
An array of words can be assumed. The shortest possible code solution (and
also the most elegant) is required. A Perl solution with the -n option was
disallowed.
As I don't know Ruby, can anyone give me a quick example. The Ruby guy who
rabbits on about the excellence of Ruby isn't here to day. Thought I'd
check.
Thanks
I have no experience with Ruby, but there is currently a debate in the
office about Python over Perl, Java, C++ etc. It's a simple programming
example:
find and print all words ending with some predefined suffix
An array of words can be assumed. The shortest possible code solution (and
also the most elegant) is required. A Perl solution with the -n option was
disallowed.
As I don't know Ruby, can anyone give me a quick example. The Ruby guy who
rabbits on about the excellence of Ruby isn't here to day. Thought I'd
check.
Thanks