4 ms·
That applies to all dynamic languages with useful list operations, really. Have an example in Ruby's forebear language: sub twitter_handles { my (
by Mithaldu 11y ago
That applies to all dynamic languages with useful list operations, really. Have an example in Ruby's forebear language:
sub twitter_handles {
my ( $authors, $company ) = @_;
grep defined,
map $_->twitter_handle,
grep $_->company eq $company, @$authors;
}
This free book goes into the same kind of topic, only much more deep: http://hop.perl.plover.com/ http://hop.perl.plover.com/
- gclaramunt 11y agoThat applies to all languages with useful list operations :) (I don't think dynamic has any relation)