Re:Exotic Programming Ideas, Part 2: Term Rewriting
by 6gvONxR4sf7o on Monday November 16, 2020 @12:35PM
(#25114494)
It matches the expression with x_ as a named wildcard (it has lots of stuff you can do to constrain the matching, like “only match if x is prime”). Then it replaces the whole expression having x bound to whatever x_ matched.
[ Parent
| on HN ]
There are no comments on this comment yet.