in reply to Equivalence classes from equivalence relation and fingerprints

It seems uncertain that a solution in Perl would necessarily assist homework in random-other-language. But if it really were Perl, the first thing that would pop into my mind would be grep, e.g.:
my @matching = grep property( $_ ), @sg;

-M

Free your mind

  • Comment on Re: Equivalence classes from equivalence relation and fingerprints
  • Download Code