Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 22s
Untyped lambda calculus interpreter inside OCaml-on-SX: type term = Var | Abs of string * term | App | Num of int type value = VNum of int | VClos of string * term * env let rec eval env t = match t with ... (\x.\y.x) 7 99 = 7. The substrate handles two ADTs, recursive eval, closure-based env, and pattern matching all written as a single self-contained OCaml program — strong validation.
20 lines
386 B
JSON
20 lines
386 B
JSON
{
|
|
"btree.ml": 39,
|
|
"calc.ml": 13,
|
|
"closures.ml": 315,
|
|
"exception_handle.ml": 4,
|
|
"expr_eval.ml": 16,
|
|
"factorial.ml": 3628800,
|
|
"fizzbuzz.ml": 57,
|
|
"list_ops.ml": 30,
|
|
"lambda_calc.ml": 7,
|
|
"memo_fib.ml": 75025,
|
|
"module_use.ml": 3,
|
|
"mutable_record.ml": 10,
|
|
"option_match.ml": 5,
|
|
"queens.ml": 2,
|
|
"quicksort.ml": 44,
|
|
"sum_squares.ml": 385,
|
|
"word_count.ml": 3
|
|
}
|