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

6
LINES

< > BotCompany Repo | #1026315 // spliceList - take out part and put in something new. note: second int is TO, not LENGTH

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

Libraryless. Click here for Pure Java version (2204L/14K).

static <A> L<A> spliceList(L<A> a, int from, int to, Cl<A> b) {
  ret concatLists(
    takeFirst(a, from),
    b,
    subList(a, max(from, to));
}

Author comment

Began life as a copy of #1024383

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026315
Snippet name: spliceList - take out part and put in something new. note: second int is TO, not LENGTH
Eternal ID of this version: #1026315/2
Text MD5: 76e67ffb9844189815ddb446cf32fac8
Transpilation MD5: 05b1720ab9439e0e50bff9df05ed6f2f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-15 21:26:59
Source code size: 151 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 164 / 238
Version history: 1 change(s)
Referenced in: [show references]