News for hackers. Stuff that matters.
Re:The list monad in Perl and Python by what-no-tests on Tuesday August 04, 2015 @01:42PM (#10004939)
Nice work!

In the perl version, perhaps `remove` would be a bit faster to just delete a hash slice.

    sub remove {
      my ($b, $a) = @_;
      my %h = map { $_ => 1 } @$a;
      delete $h{@$b};
      return [ keys %h ];
    }

There are no comments on this comment yet.