Libraryless. Click here for Pure Java version (3206L/20K).
1 | // returns list of (pattern, matches) |
2 | static LPair<S, SS> gazelle_zipAll(S input, Collection<S> patterns, O... _) {
|
3 | ret mapNonNulls(patterns, pat -> {
|
4 | SS map = gazelle_zip(pat, input, _); |
5 | ret map == null ? null : pair(pat, map); |
6 | }); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023123 |
| Snippet name: | gazelle_zipAll - try all patterns, returns those that match at all |
| Eternal ID of this version: | #1023123/4 |
| Text MD5: | eadaf4401d8d93e17cde5dd5b3a5d006 |
| Transpilation MD5: | 8b2e88a1c8df2639f18c9c16bead482b |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-12-14 17:16:17 |
| Source code size: | 252 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 492 / 612 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |