Skip to content

Cannot pass array into filter() from another function #1088

@LloydLS

Description

@LloydLS

Hi,

It looks like filter() can't be used in a custom function, as it won't accept an array passed from outside (unless the array is a predefined variable). Is this expected?

filterNeg(arr) = filter(arr, x > 0 )
filterNeg([-4, 0 , 3, 4 , -2]) // Error: Undefined symbol arr; Expected result: [3, 4]

Tested in version 4.1.2.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions