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

3
LINES

< > BotCompany Repo | #1019284 // setFirst

JavaX fragment (include)

static <A> void setFirst(L<A> l, A a) {
  if (nempty(l)) l.set(0, a);
}

Author comment

Began life as a copy of #1019280

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019284
Snippet name: setFirst
Eternal ID of this version: #1019284/3
Text MD5: 7dc9e18cf7ceb2f2341b387c6f780e28
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-29 12:23:27
Source code size: 73 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 374
Version history: 2 change(s)
Referenced in: [show references]