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

15
LINES

< > BotCompany Repo | #1015272 // scored

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

Libraryless. Click here for Pure Java version (2614L/16K).

static <A> Scored<A> scored(A a, float score) {
  ret Scored(a, score);
}

static <A> Scored<A> scored(A a, double score) {
  ret Scored(a, (float) score);
}

static <A> Scored<A> scored(A a, Scored scored) {
  ret Scored(a, getScore(scored));
}

static <A> Scored<A> scored(double score, A a) {
  ret scored(a, score);
}

Author comment

Began life as a copy of #1015271

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1015272
Snippet name: scored
Eternal ID of this version: #1015272/3
Text MD5: cbde159c2c787c429a9e5fc681d2a49c
Transpilation MD5: 80f23c8fa98bd0b41e14af21abf2a85e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-19 22:27:06
Source code size: 335 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 335 / 430
Version history: 2 change(s)
Referenced in: [show references]