-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
For example, in this example from the blog post
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.
Metadata
Metadata
Assignees
Labels
No labels