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

15
LINES

< > BotCompany Repo | #1034079 // iff_null - synonym of iteratorFromFunction

JavaX fragment (include)

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

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034079
Snippet name: iff_null - synonym of iteratorFromFunction
Eternal ID of this version: #1034079/1
Text MD5: 41da3585498e23f963d356237de8034e
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-21 03:57:31
Source code size: 308 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 160
Referenced in: [show references]