1 | static S n(long l, S name) { |
2 | ret l + " " + trim(l == 1 ? singular(name) : getPlural(name)); |
3 | } |
4 | |
5 | static S n(Collection l, S name) { |
6 | ret n(l(l), name); |
7 | } |
8 | |
9 | static S n(Map m, S name) { |
10 | ret n(l(m), name); |
11 | } |
12 | |
13 | static S n(O[] a, S name) { |
14 | ret n(l(a), name); |
15 | } |
16 | |
17 | ifclass MultiSet |
18 | static S n(MultiSet ms, S name) { |
19 | ret n(l(ms), name); |
20 | } |
21 | 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: | 819 / 2276 |
Version history: | 2 change(s) |
Referenced in: | [show references] |