Open cloudrac3r opened 1 year ago
Just like the for-each => for conversion, some maps should be converted to for/list.
for-each
for
map
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
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.
(apply append (for/list ...))
(for*/list ...)
for*/list
Just like the
for-each
=>for
conversion, somemap
s should be converted tofor/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