So I am trying to filter a list of strings, however when I try I get a really strange response.
q)(“abs” “asd” “bca”) except “bca”
k){x@&~x in y}
'type
&:
(001b;011b;000b)
q.q))\
q)
So I am trying to filter a list of strings, however when I try I get a really strange response.
q)(“abs” “asd” “bca”) except “bca”
k){x@&~x in y}
'type
&:
(001b;011b;000b)
q.q))\
q)
q)(“abs”;“asd”;“bca”) except enlist"bca"
“abs”
“asd”
q)except[(“abc”;“bcd”;“efg”);enlist “efg”] //enlist is required only for string
“abc”
“bcd”
q)
q)except[a
bc
de;
a] //For symbol no enlist required
b
cd
e
q)except[`a`b`c`d`e;`a`d]
b
c`e
q)except[1+til 10; 2 4 6] //For num no enlist required
1 3 5 7 8 9 10
q)except[1+til 10;2]
1 3 4 5 6 7 8 9 10
?/in/bin and consequently except as well are rank sensitive
see rank sensitivity at
Perfect! Thanks a million!