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

3
LINES

< > BotCompany Repo | #1028586 // pwt_winner - return longer parse of two parses

JavaX fragment (include)

static <A> ParsedWithTokens<A> pwt_winner(ParsedWithTokens<A> a, ParsedWithTokens<A> b) {
  ret a == null ? b : b == null ? a : a.length() >= b.length() ? a : b;
}

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: #1028586
Snippet name: pwt_winner - return longer parse of two parses
Eternal ID of this version: #1028586/1
Text MD5: 85158fbed55da5b4254f2b13300d3267
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-27 21:41:19
Source code size: 165 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 213
Referenced in: [show references]