succeed

fun <S, A> succeed(r: A): Parser<S, A>

A parser that always succeeds with a given result.

Return

A parser that returns the given result and the current index.

Parameters

r

The result to return.