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

7
LINES

< > BotCompany Repo | #1026438 // nextInCyclicList

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2156L) is out of date.

static <A> A nextInCyclicList(A a, L<A> l) {
  ret cyclicGet(l, indexOf(l, a)+1);
}

static <A> A nextInCyclicList(L<A> l, A a) {
  ret nextInCyclicList(a, l);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026438
Snippet name: nextInCyclicList
Eternal ID of this version: #1026438/2
Text MD5: 081456c9d2a0e6b6519d15051c895520
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-14 20:27:00
Source code size: 163 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 312
Version history: 1 change(s)
Referenced in: [show references]