Introduce length functor (#314)

This commit is contained in:
Mike Voronov
2022-09-08 16:58:04 +03:00
committed by GitHub
parent 626796b299
commit a4011ef038
56 changed files with 1411 additions and 683 deletions

View File

@ -91,6 +91,10 @@ pub enum CatchableError {
/// Canon instruction can't canonicalize a stream since it's been found.
#[error("stream with name {0} wasn't defined, so canon instruction can't canonicalize it")]
StreamsForCanonNotFound(String),
/// This error type is occurred when the length functor applied to a value of non-array type.
#[error("the length functor could applied only to an array-like value, but it's applied to '{0}'")]
LengthFunctorAppliedToNotArray(JValue),
}
impl From<LambdaError> for Rc<CatchableError> {