chatziko / lci

A lambda calculus interpeter
https://www.chatzi.org/lci/
GNU General Public License v2.0
64 stars 7 forks source link

De Bruijn Index notation #7

Open HalosGhost opened 5 years ago

HalosGhost commented 5 years ago

lci is already incredibly wonderful. But, adding some support for the De Bruijn Index notation could lead to some amazing things. Below is a list of things I would love to see lci be able to do:

For example (imagining that the following definition exists in the current namespace: I = \x.x;):

lci> \x.x

I
(0 reductions, 0.00s CPU)

In my opinion, this would be wonderfully useful! Thoughts?