]a=:2+i.9 2 3 4 5 6 7 8 9 10 (6<a)#a 7 8 9 10
f=: 13 :'(x<y)#y' 6 f 2 + i.9 7 8 9 10 I find it is helpful to plan for similar problems in the future. Surprise! f < # ] Linda Sent from my Verizon, Samsung Galaxy smartphone -------- Original message -------- From: 'Pascal Jasmin' via Programming <[email protected]> Date: 4/30/19 9:08 AM (GMT-05:00) To: [email protected] Subject: Re: [Jprogramming] How to get actual values instead of booleans from a list? (#~ >&6) (2+i.9) 7 8 9 10 On Tuesday, April 30, 2019, 9:06:26 a.m. EDT, JmageK <[email protected]> wrote: NB. Want it to return all numbers larger than 6 from list (>&6) (2+i.9) NB. Actual result 0 0 0 0 0 1 1 1 1 NB. desired result 7 8 9 10 I searched but could not find what to do next to have it return only those numbers which pass the comparison (1 1 1 ). JmageK -- Securely sent with Tutanota ---------------------------------------------------------------------- For information about J forums see https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C9a5191c4a160483bef6e08d6cd6cfc29%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636922265297351670&sdata=Yqus%2F7M%2B1ylqRkam2Y1QkO70ufYgBcS02Ys2zZVqqPE%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C9a5191c4a160483bef6e08d6cd6cfc29%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636922265297351670&sdata=Yqus%2F7M%2B1ylqRkam2Y1QkO70ufYgBcS02Ys2zZVqqPE%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
