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

6
LINES

< > BotCompany Repo | #1020863 // indexOfWhere - index of first object that matches fields

JavaX fragment (include)

1  
static int indexOfWhere(L l, O... params) {
2  
  for i over l:
3  
    if (checkFields(l.get(i), params))
4  
      ret i;
5  
  ret -1;
6  
}

Author comment

Began life as a copy of #1002601

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020863
Snippet name: indexOfWhere - index of first object that matches fields
Eternal ID of this version: #1020863/2
Text MD5: 8de3e297c638d72ea85f3ed8bbaaa8b9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-06 12:36:47
Source code size: 128 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 361
Version history: 1 change(s)
Referenced in: [show references]