Skip to content

Add a test to capture the fact that 'some' returns a lexical variable and can't be used for modifying the tail of the input list #432

@masak

Description

@masak
Language::Bel 0.63 -- darwin.
> (set L '(1 2 3 4 5))
(1 2 3 4 5)
> (some (is 3) L)
(3 4 5)
> (set (some (is 3) L) '(10 20 30))
(10 20 30)
> L
(1 2 3 4 5)

Expected that last one to be (1 2 10 20 30).

Seems not only is this one busted, but maybe we also don't have a test for something like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions