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

8
LINES

< > BotCompany Repo | #1028811 // firstCountingDollarVarNotInSet

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

Libraryless. Click here for Pure Java version (76L/1K).

1  
sS firstCountingDollarVarNotInSet(Set<S> set) {
2  
  for (int i = 1; i < Int.MAX_VALUE; i++) {
3  
    S var = "$" + i;
4  
    if (!contains(set, var))
5  
      ret var;
6  
  }
7  
  null;
8  
}

Author comment

Began life as a copy of #1028810

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: #1028811
Snippet name: firstCountingDollarVarNotInSet
Eternal ID of this version: #1028811/1
Text MD5: 76fc4b5a7e8637723329d8c5afb34c3b
Transpilation MD5: dbea77de96a218cd777e477085bf076c
Author: stefan
Category: eleu / nl
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 11:27:37
Source code size: 177 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 171
Referenced in: [show references]