Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1023123 - gazelle_zipAll - try all patterns, returns those that match at all

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3206L/20K).

// returns list of (pattern, matches)
static LPair<S, SS> gazelle_zipAll(S input, Collection<S> patterns, O... _) {
  ret mapNonNulls(patterns, pat -> {
    SS map = gazelle_zip(pat, input, _);
    ret map == null ? null : pair(pat, map);
  });
}

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz

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: 101 / 135
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1023123 & http://1023123.tinybrain.de