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)

// f: func -> A (stream ends when f returns null)
static <A> IterableIterator<A> iffNull(fO f) {
  ret iteratorFromFunction(f);
}


static <A> IterableIterator<A> iffNull(F0<A> f) {
  ret iteratorFromFunction(f);
}



static <A> IterableIterator<A> iffNull(IF0<A> f) {
  ret iteratorFromFunction(f);
}

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: 58 / 60
Referenced in: [show references]