static L<S> grep(S pattern, L<S> lines) { new L<S> l; for (S s : lines) if (s.indexOf(pattern) >= 0) l.add(s); return l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001315 |
| Snippet name: | grep function |
| Eternal ID of this version: | #1001315/1 |
| Text MD5: | a3502dbb44ee36712c0ee6abccace4d7 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-10-09 18:43:33 |
| Source code size: | 144 bytes / 7 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 835 / 1099 |
| Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |