×ばつ callback/generator). Useful for pattern matching with extraction, constraint search, type inference, planners, expert systems, and policy checks. ESM, single runtime dependency (deep6). - solvers asyncGen · uhop/yopl Wiki"> ×ばつ callback/generator). Useful for pattern matching with..." /> ×ばつ callback/generator). Useful for pattern matching with..." />×ばつ callback/generator). Useful for pattern matching with..." />
Skip to content

Navigation Menu

Sign in
Sign up

solvers asyncGen

Eugene Lazutkin edited this page Apr 7, 2026 · 3 revisions

solvers-asyncGen

Asynchronous generator-based solver. Combines lazy enumeration with await-bearing goal predicates.

Import

import asyncGen from 'yopl/solvers/asyncGen.js';

Signature

asyncGen(rules, name, args): AsyncGenerator<Env>

Example

import {variable} from 'deep6/env.js';
import assemble from 'deep6/traverse/assemble.js';
import asyncGen from 'yopl/solvers/asyncGen.js';
const rules = {one: () => [{args: [1]}]};
const X = variable('X');
for await (const env of asyncGen(rules, 'one', [X])) {
 console.log(assemble(X, env)); // 1
}

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /