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

6
LINES

< > BotCompany Repo | #1028594 // pwt_transform - mapNonNulls for PWT, just copies the parsing information

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

Libraryless. Click here for Pure Java version (4768L/27K).

static <A, B> L<ParsedWithTokens<B>> lambdaMapLike pwt_transform(IF1<A, B> f, Iterable<ParsedWithTokens<A>> l) {
  ret mapNonNulls(p -> {
    B b = f.get(p!);
    ret b == null ?: p.withValue(b);
  }, l);
}

Author comment

Began life as a copy of #1028572

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028594
Snippet name: pwt_transform - mapNonNulls for PWT, just copies the parsing information
Eternal ID of this version: #1028594/9
Text MD5: d63cc0e2d7f722094c66f6f24deacc30
Transpilation MD5: e33bdbdc18f9a2af16a060f0f22a1987
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-15 00:41:33
Source code size: 211 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 108 / 203
Version history: 8 change(s)
Referenced in: [show references]