List comprehensions: Difference between revisions

m
J: provide example use (or should this code get a name?)
No edit summary
m (J: provide example use (or should this code get a name?))
Line 183:
 
Second, you need a statement of the form (#~ B) where B returns true for the desired members, and false for the undesired members.
 
Example use:
 
<lang J> (#~ (2&{ = 1&{ +&.:*: 0&{)@|:)@(1+3&# #: i.@^&3) 12
3 4 5
4 3 5
6 8 10
8 6 10</lang>
 
=={{header|JavaScript}}==
6,962

edits