resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Suggest map => for/list, similar to for-each => for

Open cloudrac3r opened this issue 1 year ago • 1 comments

Just like the for-each => for conversion, some maps should be converted to for/list.

They can use the same heuristics to detect whether they should be converted (i.e. having a large enough body)

Previously discussed here: https://github.com/racket/drracket/pull/611#discussion_r1131935922

cloudrac3r avatar Mar 20 '23 08:03 cloudrac3r

Found another instance where this would help: in this code after replacing the (apply append (for/list ...)) with a single (for*/list ...), the map can be fused into that for*/list.

jackfirth avatar Sep 09 '23 09:09 jackfirth