|
|
# Desugaring of array comprehensions
|
|
|
## Desugaring of array comprehensions
|
|
|
|
|
|
|
|
|
Wadler's desugaring for list comprehensions is not suitable for arrays, as we need to use collective operations to get good parallel code. The build/foldr desugaring, although using collective operations, isn't a good match for how the array operations are implemented. In fact, the *naive* desugaring from the H98 report is a much better fit:
|
... | ... | |