Skip to content

convex lisp: update doesn't apply all arguments #533

@jeroenvandijk

Description

@jeroenvandijk

Tested with Convex 0.8.2

update doesn't apply arguments correctlly.

With two arguments it is fine

(update {:a 0} :a + 1) ;=> 1

With more than two arguments it fails to apply the second argument

(update {:a 0} :a + 1 2) ;=> 2, incorrect, should be 3
(update {:a 0} :a + 1 2 3) ;=> 5, should be 6
(update {:a 0} :a + 1 2 3 4) ;=> 9, should be 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions