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

21
LINES

< > BotCompany Repo | #1014213 // n3 - takes plural from mech list

JavaX fragment (include)

1  
static S n3(long l, S singular) {
2  
  ret n2(l, singular, plural_mech(singular));
3  
}
4  
5  
static S n3(Collection l, S singular) {
6  
  ret n3(l(l), singular);
7  
}
8  
9  
static S n3(Map m, S singular, S plural) {
10  
  ret n3(l(m), singular);
11  
}
12  
13  
static S n3(O[] a, S singular, S plural) {
14  
  ret n3(l(a), singular);
15  
}
16  
17  
ifclass MultiSet
18  
  static S n3(MultiSet ms, S singular, S plural) {
19  
    ret n3(l(ms), singular);
20  
  }
21  
endif

Author comment

Began life as a copy of #1012450

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: #1014213
Snippet name: n3 - takes plural from mech list
Eternal ID of this version: #1014213/1
Text MD5: aa9ebb80d16367ec56dd9dd0d688bc48
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-16 01:11:29
Source code size: 422 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 409 / 432
Referenced in: [show references]