Skip to content

Commit

Permalink
Tweak comment for map2pro.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilconway committed Jul 15, 2011
1 parent c22b4db commit dde74de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bud/rewrite.rb
Expand Up @@ -115,7 +115,9 @@ def do_rule(exp)
drain(exp)
end

# Look for top-level map on a base-table on rhs, and rewrite to pro
# We want to rewrite "map" calls on BudCollections to "pro" calls. It is hard
# to do this accurately (issue #225), so we just replace map calls liberally
# and define Enumerable#pro as an alias for "map".
def map2pro(exp)
if exp[1] and exp[1][0] and exp[1][0] == :iter \
and exp[1][1] and exp[1][1][1] and exp[1][1][1][0] == :call
Expand Down

0 comments on commit dde74de

Please sign in to comment.