can't get $filter to work

Issue #52 new
Former user created an issue

I'm trying to remove some values from an array.

The help file says: $filter(A,Q), Removes values in Q from A. But I can't it to work like that except for when Q is at D0 (single string) and A is at D1 In all other cases I get the error "Array parameter (2) is too shallow/deep"

I tried all kinds of depth combinations for A and Q:

A D1, Q D0 $filter($array(aa,ab,bb),ab) works fine

A D2, filter: D0 $filter($array($array(aa,ab),$array(ab,bb)),ab) Array parameter (2) is too shallow

A D1, Q D1 $filter($array(aa,ab,bb),$array(ab,bb)) Array parameter (2) is too deep

A D2, Q D1 $filter($array($array(aa,ab),$array(ab,bb)),$array(ab,bb)) Array parameter (2) is too deep

A D2, Q D2 $filter($array($array(aa,ab),$array(ab,bb)),$array($array(ab),$array(bb))) $filter($array($array(aa,ab,bb)),$array($array(ab,bb))) Array parameter (2) is too deep

A D1, Q D2 $filter($array(aa,ab,bb),$array($array(ab,bb))) Array parameter (2) is too deep

Is this a bug or have is there still a way to make it work with an array as Q?

Comments (0)

  1. Log in to comment