Railway circuit: Difference between revisions

m
m (→‎{{header|Raku}}: Use True instead of '1', remove single-use variable)
Line 1,318:
 
sub addsymmetries(%infound, \turns) {
submy circularsymmetries(@c)allsym.push: | .&{ (0..^+@c$_).map: -> $n {rotate @c$_, $_n} } for turns, -«turns;
%infound{$_.Str} = True for @allsym;
my @allsym = |(circularsymmetries turns), |(circularsymmetries -«turns);
%infound{$_.Str} = True for @allsym;
return @allsym.max
}
2,392

edits