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

3
LINES

< > BotCompany Repo | #1023790 // firstNonZeroDouble

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

Libraryless. Click here for Pure Java version (1700L/11K).

1  
static Double firstNonZeroDouble(Iterable<Double> l) {
2  
  ret firstThat(d -> d != null && d != 0, l);
3  
}

Author comment

Began life as a copy of #1023789

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: #1023790
Snippet name: firstNonZeroDouble
Eternal ID of this version: #1023790/1
Text MD5: 63b0d7081fe9cbd7280f502b11218ec5
Transpilation MD5: 9dbbd16fc9a15ebc0173a1399a7f9199
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-09 01:58:18
Source code size: 104 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 296
Referenced in: [show references]