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

13
LINES

< > BotCompany Repo | #1014420 // iff - synonym of iteratorFromFunction_withEndMarker

JavaX fragment (include)

// f: func -> A | endMarker
static <A> IterableIterator<A> iff(O f) {
  ret iteratorFromFunction_withEndMarker(f);
}

// can't use type parameter because end marker
static IterableIterator iff(F0 f) {
  ret iteratorFromFunction_withEndMarker(f);
}

static <A> IterableIterator iff(IF0 f) {
  ret iteratorFromFunction_withEndMarker(f);
}

Author comment

Began life as a copy of #1013588

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014420
Snippet name: iff - synonym of iteratorFromFunction_withEndMarker
Eternal ID of this version: #1014420/4
Text MD5: 7d8a8fee487044862f7499b401898d26
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-26 12:19:01
Source code size: 348 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 515 / 540
Version history: 3 change(s)
Referenced in: [show references]