Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

The find function ? returns the first matching entry in a dictionary for the given value:

q)d:1 2 3 4!100 200 100 400
q)d
1| 100
2| 200
3| 100
4| 400
q)d?100
1
q)

How would I find all the entries in the dictionary matching that value ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
323 views
Welcome To Ask or Share your Answers For Others

1 Answer

q)d:1 2 3 4!100 200 100 400
q)where d=100
1 3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...