How to filter a list in J?

Posted by Gregory Higley on Stack Overflow See other posts from Stack Overflow or by Gregory Higley
Published on 2010-05-19T10:55:36Z Indexed on 2010/05/19 11:00 UTC
Read the original article Hit count: 240

Filed under:

I'm currently learning the fascinating J programming language, but one thing I have not been able to figure out is how to filter a list.

Suppose I have the arbitrary list 3 2 2 7 7 2 9 and I want to remove the 2s but leave everything else unchanged, i.e., my result would be 3 7 7 9. How on earth do I do this?

© Stack Overflow or respective owner

Related posts about j