Skip to content

Commit

Permalink
Make %!seen a set
Browse files Browse the repository at this point in the history
  • Loading branch information
Leont committed Jan 14, 2016
1 parent 3d9471b commit 2f41a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Build/Graph.pm
Expand Up @@ -17,7 +17,7 @@ trusts File;
has Node %.nodes;
has Plugin %!plugins;
has Variable %!variables;
has %!seen;
has %!seen is Set;
has Int $!counter = 1;

method !expand(%options, Str:D $key, Int:D $count) {
Expand Down Expand Up @@ -144,7 +144,7 @@ method !load-variables(%source, $name) {
}

method from-hash(%input) {
my %seen = %input<seen>.map: { $^key => 1 };
my %seen := %input<seen>.Set;
my $ret = self.bless(:%seen);
for %input<nodes>.kv -> $target, %value {
my Node:U $class = ::(%value<type>.tclc);
Expand Down

0 comments on commit 2f41a77

Please sign in to comment.