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)

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


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



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

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