static int lengthPunishment(int actualLength, int pivotLength) { ret pivotLength <= 0 ? 0 : max(0, actualLength-pivotLength); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004874 |
Snippet name: | lengthPunishment |
Eternal ID of this version: | #1004874/1 |
Text MD5: | fb36965cfa12d6f6a65cfbda60f1111a |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-09-11 22:42:03 |
Source code size: | 131 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 519 / 520 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |