TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/egraph
firstImprovingRewrite
Function firstImprovingRewrite
firstImprovingRewrite
<
State
,
Context
,
Detail
,
Proof
>
(
options
:
{
state
:
State
;
rules
:
readonly
RewriteRule
<
State
,
Context
,
Detail
,
Proof
>
[]
;
context
:
Context
;
budget
:
Budget
;
cost
:
(
state
:
State
)
=>
readonly
number
[]
;
}
,
)
:
Maybe
<
ProvenRewrite
<
State
,
Detail
,
Proof
>
>
Returns the first strict improvement; rules and candidates each charge one fuel unit.
Type Parameters
State
Context
Detail
Proof
Parameters
options
:
{
state
:
State
;
rules
:
readonly
RewriteRule
<
State
,
Context
,
Detail
,
Proof
>
[]
;
context
:
Context
;
budget
:
Budget
;
cost
:
(
state
:
State
)
=>
readonly
number
[]
;
}
Returns
Maybe
<
ProvenRewrite
<
State
,
Detail
,
Proof
>
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
TOC Toolkit API - v0.1.0
Loading...
Returns the first strict improvement; rules and candidates each charge one fuel unit.