Files
lambda/pkg/engine/engine.go
2026-02-07 00:12:50 -05:00

13 lines
302 B
Go

// Package engine defines a general process of reducing a lambda calculus
// expression.
package engine
// A Process handles the reduction of a
type Process[T any] interface {
Get() (T, error)
Step(int) bool
}
// An Engine is an object that handles
type Engine[T any] = func(T) (Process[T], error)