in reply to (Golf) Per Mutations
#!/usr/bin/perl -w use strict; use Data::Dumper; my @b = p(1,2,3,4); print Dumper( @b ); sub p { $#_<1?[@_]:map{my$a=$_;map{[$a,@$_]}p(grep{$_!=$a}@_)}@_ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: (Golf) Per Mutations
by tilly (Archbishop) on May 04, 2001 at 04:29 UTC | |
|
Re: Re: (Golf) Per Mutations
by MeowChow (Vicar) on May 04, 2001 at 03:46 UTC | |
by dws (Chancellor) on May 04, 2001 at 03:59 UTC |