static S n(long l, S name) { ret l + " " + trim(l == 1 ? singular(name) : getPlural(name)); } static S n(Collection l, S name) { ret n(l(l), name); } static S n(Map m, S name) { ret n(l(m), name); } static S n(O[] a, S name) { ret n(l(a), name); } ifclass MultiSet static S n(MultiSet ms, S name) { ret n(l(ms), name); } endif
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002112 |
Snippet name: | n function |
Eternal ID of this version: | #1002112/3 |
Text MD5: | f9df3f3806daceaa4c8147a204adeee0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-03 19:10:07 |
Source code size: | 366 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 817 / 2272 |
Version history: | 2 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011530 - n_fancy - like n(), but with thousands separator #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |