13 lines
302 B
Go
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)
|