Libraryless. Click here for Pure Java version (2518L/16K).
static L mapNonCodeTokens(O f, L l) { L out = emptyList(l); for i over l: { O o = l.get(i); out.add(even(i) ? callF(f, o) : o); } ret out; } static L mapNonCodeTokens(L l, O f) { ret mapNonCodeTokens(f, l); } static LS mapNonCodeTokens(LS tok, IF1<S> f) { ret mapNonCodeTokens(tok, (O) f); } static LS lambdaMapLike mapNonCodeTokens(IF1<S> f, LS tok) { ret mapNonCodeTokens(tok, f); }
Began life as a copy of #1014541
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029679 |
Snippet name: | mapNonCodeTokens - keeps C tokens as they are |
Eternal ID of this version: | #1029679/1 |
Text MD5: | d901149d3c8bf3d62418b22fe342a96d |
Transpilation MD5: | 2473d2f4dd45b5bf3fc1972dbc3fa376 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-07 12:29:30 |
Source code size: | 428 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 244 |
Referenced in: | [show references] |