(error reply)
Returns the error of the reply.
Returns the error of the reply.
(ok? reply)
Returns true if this reply is successful.
Returns true if this reply is successful.
(value reply)
Returns the result value of the reply.
Returns the result value of the reply.
(with-error reply error)
Returns an updated reply with the error set to error
.
Returns an updated reply with the error set to `error`.
(with-ok reply ok?)
Returns an updated reply with the success flag set to ok?
.
Returns an updated reply with the success flag set to `ok?`.
(with-value reply value)
Returns an updated reply with the result value set to value
.
Returns an updated reply with the result value set to `value`.
(fail reply-factory error)
Creates an unsuccessful reply with an error.
Creates an unsuccessful reply with an error.
(ok reply-factory value)
(ok reply-factory value error)
Creates a successful reply with a result value. Successful replies can also carry an error, representing any additional input the parser could have consumed.
Creates a successful reply with a result value. Successful replies can also carry an error, representing any additional input the parser could have consumed.
(mutable-reply)
Creates a mutable reply object.
Creates a mutable reply object.
(update-value reply f)
Updates the result value of reply
using f
.
Updates the result value of `reply` using `f`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close