You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prev Next (step 1, next step: apply enumFromTo)
case enumFromTo 1 3 of {
[] -> 0
x:xs' -> length (1 + 0) xs'
}
It would be very neat to also see the definition of enumFromTo and a note of what the values are. Something like this:
Will apply enumFromTo, with n = 1 and m = 3:
enumFromTo = (\n -> \m ->
if le n m then Cons n (@enumFromTo (add n 1) m)
else Nil
)
This should probably be a separate feature request but it would also be very helpful to highlight the parts of the code where the rule will be applied. In particular when the next step is selecting a branch of a case expression. To be extra clear, we could highlight the parameters of the rule with different colours.
The text was updated successfully, but these errors were encountered:
For example, in this example from the blog post
It would be very neat to also see the definition of
enumFromTo
and a note of what the values are. Something like this:This should probably be a separate feature request but it would also be very helpful to highlight the parts of the code where the rule will be applied. In particular when the next step is selecting a branch of a
case
expression. To be extra clear, we could highlight the parameters of the rule with different colours.The text was updated successfully, but these errors were encountered: