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

3
LINES

< > BotCompany Repo | #1025371 // firstWhereMethodReturns

JavaX fragment (include)

static <A> A mapMethodLike firstWhereMethodReturns(S methodName, Iterable<A> l, O result) {
  ret firstThat(l, o -> eq(call(o, methodName), result));
}

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: #1025371
Snippet name: firstWhereMethodReturns
Eternal ID of this version: #1025371/1
Text MD5: ae11f30f4817261f81536d2e72c13c1f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-26 17:16:53
Source code size: 153 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 215
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025372 - hasWhereMethodReturns