A factory for mapping a Symbol producer into a Validation producer is missing from the Validator namespace.
The following code is the current way to map a stream of symbol into a stream of validation (from a Kiss validator) :
const source: UnidocProducer<UnidocSymbol> = anySymbolProducer()
const events: UnidocProducer<UnidocEvent> = parse(tokenize(source))
const validator: UnidocValidator = UnidocValidator.kiss(factory())
validator.subscribe(events) // <-- this line denote is an UX problem
Ideally the library must allow to write the following code:
A factory for mapping a Symbol producer into a Validation producer is missing from the Validator namespace.
The following code is the current way to map a stream of symbol into a stream of validation (from a Kiss validator) :
Ideally the library must allow to write the following code:
Or: