jackfirth / resyntax

A Racket refactoring engine
Apache License 2.0
51 stars 10 forks source link

Throw away map #223

Open sorawee opened 9 months ago

sorawee commented 9 months ago
(begin 
  (map f xs)
  (something-else))

should be converted to:

(begin 
  (for-each f xs)
  (something-else))

(begin is just an example -- the middle of an internal definition context should count too)