Skip to content
/ lamb Public

πŸ‘f.(πŸ‘x.f(x x))(πŸ‘x.f(x x))

Notifications You must be signed in to change notification settings

Zeta611/lamb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘

Example

let e = parse("((\\x.x) (\\y.y)) z");
println!("e = {:?}", e);
println!("FV(e) = {:?}", free_var(&e));
println!("closed(e) = {:?}", closed(&e));
println!("eval(e) = {:?}", beta_red(&e, 0));
e = App(App(Lamb("x", Var("x")), Lamb("y", Var("y"))), Var("z"))
FV(e) = {"z"}
closed(e) = false
eval(e) = (Var("z"), 0)

About

πŸ‘f.(πŸ‘x.f(x x))(πŸ‘x.f(x x))

Topics

Resources

Stars

Watchers

Forks

Languages