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

30
LINES

< > BotCompany Repo | #1017277 // mapIterator - synonym of mapI

JavaX fragment (include)

// apply a function to an iterator
static IterableIterator mapLike mapIterator(O f, Iterator i) {
  ret mapI(f, i);
}



static IterableIterator mapIterator(Iterator i, O f) {
  ret mapI(i, f);
}


static IterableIterator mapIterator(Iterable i, O f) {
  ret mapI(iterator(i), f);
}

static IterableIterator mapIterator(O f, Iterable i) {
  ret mapI(iterator(i), f);
}


ifclass IterableIterator
static IterableIterator mapIterator(IterableIterator i, O f) {
  ret mapIterator((Iterator) i, f);
}

static IterableIterator mapIterator(O f, IterableIterator i) {
  ret mapIterator((Iterator) i, f);
}
endif

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017277
Snippet name: mapIterator - synonym of mapI
Eternal ID of this version: #1017277/6
Text MD5: e15ca1f43368125b9b4cd21f6816da66
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-22 14:39:08
Source code size: 633 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 377 / 454
Version history: 5 change(s)
Referenced in: [show references]