We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55255d3 commit d2df3feCopy full SHA for d2df3fe
src/Commands.hs
@@ -400,6 +400,8 @@ commandConsLast ctx x xs =
400
pure $ case xs of
401
XObj (Lst lst) i t ->
402
(ctx, Right (XObj (Lst (lst ++ [x])) i t)) -- TODO: should they get their own i:s and t:s
403
+ XObj (Arr arr) i t ->
404
+ (ctx, Right (XObj (Arr (arr ++ [x])) i t))
405
_ -> evalError ctx "Applying 'cons-last' to non-list or empty list." (xobjInfo xs)
406
407
commandAppend :: BinaryCommandCallback
0 commit comments