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

15
LINES

< > BotCompany Repo | #1036093 // iffNull - synonym of iteratorFromFunction

JavaX fragment (include)

1  
// f: func -> A (stream ends when f returns null)
2  
static <A> IterableIterator<A> iffNull(fO f) {
3  
  ret iteratorFromFunction(f);
4  
}
5  
6  
7  
static <A> IterableIterator<A> iffNull(F0<A> f) {
8  
  ret iteratorFromFunction(f);
9  
}
10  
11  
12  
13  
static <A> IterableIterator<A> iffNull(IF0<A> f) {
14  
  ret iteratorFromFunction(f);
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036093
Snippet name: iffNull - synonym of iteratorFromFunction
Eternal ID of this version: #1036093/1
Text MD5: 9de38958becee94c08ad90796bc6e327
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-12 16:28:42
Source code size: 305 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 128 / 137
Referenced in: [show references]