Skip to content

Commit

Permalink
Make as-sub-select and as-select return a new select, maybe related to
Browse files Browse the repository at this point in the history
  • Loading branch information
FCO committed Oct 15, 2023
1 parent ac69941 commit fbe7d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/Red/AST/Select.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ method minus($sel) {
}

method as-sub-select {
$!sub-select = True;
self;
self.clone: :sub-select
}

method as-select {
$!sub-select = False;
self;
self.clone: :!sub-select
}
2 changes: 1 addition & 1 deletion lib/Red/ResultSeqMethods.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ method !agg(Str $func, &block) {
self.map({
my @args = block $_;
Red::AST::Function.new: :$func, :@args
}).ast.as-sub-select
}).ast: :sub-select
}

method min(&block) {
Expand Down

0 comments on commit fbe7d5a

Please sign in to comment.