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

18
LINES

< > BotCompany Repo | #1025376 - mapOverClone - cloneList + map

JavaX fragment (include)

static L mapOverClone(Iterable l, O f) { ret mapOverClone(f, l); }

static L mapOverClone(O f, Iterable l) {
  ret map(f, cloneList(l));
}

ifclass F1
  static <A, B> L<B> mapOverClone(Iterable<A> l, F1<A, B> f) { ret mapOverClone(f, l); }

  static <A, B> L<B> mapOverClone(F1<A, B> f, Iterable<A> l) {
    ret map(f, cloneList(l));
  }
endif

static <A, B> L<B> mapOverClone(IF1<A, B> f, Iterable<A> l) { ret mapOverClone(l, f); }
static <A, B> L<B> mapOverClone(Iterable<A> l, IF1<A, B> f) {
  ret map(f, cloneList(l));
}

Author comment

Began life as a copy of #1003239

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1025376
Snippet name: mapOverClone - cloneList + map
Eternal ID of this version: #1025376/1
Text MD5: aecf3b0bebde04cbfdd27152e677ea0c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-27 00:18:11
Source code size: 541 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 12 / 16
Referenced in: [show references]

Formerly at http://tinybrain.de/1025376 & http://1025376.tinybrain.de