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

3
LINES

< > BotCompany Repo | #1032212 // mapToProbabilisticList2

JavaX fragment (include)

static <A> ProbabilisticList<A> mapToProbabilisticList2(Iterable<A> l, IF1<A, Double> f) {
  ret new ProbabilisticList<A>(map(l, a -> withProbability(f.get(a), a)));
}

Author comment

Began life as a copy of #1032211

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032212
Snippet name: mapToProbabilisticList2
Eternal ID of this version: #1032212/1
Text MD5: 99eafee7b4162b937c102f979a231a3f
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-20 07:56:07
Source code size: 169 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 73 / 93
Referenced in: [show references]