removing from dictionary

if I have a dictionary for example

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #2b66c9}span.s1 {font-variant-ligatures: no-common-ligatures}

q)ab`c!(32 4;1 2 5 4;45 3 2 4)

a| 32 4

b| 1 2 5 4

c| 45 3 2 4 

is there a way of removing the values instead of the full key i.e I want to return the dictionary with 4 removed

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #2b66c9}span.s1 {font-variant-ligatures: no-common-ligatures}

a| 32

b| 1 2 5

c| 45 3 2

q){x where x<>4} each d
a| ,32
b| 1 2 5
c| 45 3 2

except works nicely too:

q){x except 4} each d
a| ,32
b| 1 2 5
c| 45 3 2

And can be used to remove multiple values, e.g. 2 and 4:

q){x except 2 4} each d
a| ,32
b| 1 5
c| 45 3

q)d:abc!(32 4;1 2 5 4;45 3 2 4)q)/ remove from all keysq)d except\: 4a| ,32b| 1 2 5c| 45 3 2q)/ remove from specific key(s)q)@[d;a;except;4]a| ,32b| 1 2 5 4c| 45 3 2 4On 17 December 2016 22:59 UTC, cillian 181 wrote:> if I have a dictionary for example>> q)ab`c!(32 4;1 2 5 4;45 3 2 4)>> a| 32 4>> b| 1 2 5 4> c| 45 3 2 4 >> is there a way of removing the values instead of the full key i.e I want to > return the dictionary with 4 removed>> a| 32>> b| 1 2 5>> c| 45 3 2