This is a curried version of the apply method on the Parser interface.
const parser = apply(success(n => { int: n }))(int)run(parser)("123") // => Ok({ int: 123)})
This is a curried version of the apply method on the Parser interface.