I am trying to understand 'context' expression (opposed to context
pattern). In the manual it is described as:
context ident [ expr ]
ident must denote a context variable bound by a context pattern of a match expression. This expression evaluates replaces the hole of the value of ident by the value of expr.
Could somebody share an example illustrating the usage of this construct? I guess it must involve match
using context
pattern and then abovementioned form to use matched context.