Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-introduce a deprecated Any.for
no reason to break this particular feature right now
  • Loading branch information
moritz committed Apr 28, 2015
1 parent 71ff418 commit 4372ca2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Any.pm
Expand Up @@ -184,6 +184,10 @@ my class Any { # declared in BOOTSTRAP
multi method FOR($block, :$label) is rw {
MapIter.new(self, $block, Bool::False, :$label).list;
}
method for(|c) {
DEPRECATED('flatmap',|<2015.05 2015.09>);
self.flatmap(|c);
}
proto method flatmap (|) { * }
multi method flatmap(Whatever) is rw { self }
multi method flatmap($block, :$label) is rw {
Expand Down

0 comments on commit 4372ca2

Please sign in to comment.