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

7
LINES

< > BotCompany Repo | #1004184 // isAre - return "is" or "are" depending on number

JavaX fragment (include)

1  
static S isAre(int n) {
2  
  ret n == 1 ? "is" : "are";
3  
}
4  
5  
static S isAre(Collection c) {
6  
  ret isAre(l(c));
7  
}

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: #1004184
Snippet name: isAre - return "is" or "are" depending on number
Eternal ID of this version: #1004184/2
Text MD5: a1cf612d90abbc1dc42db1273aedec27
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-03 18:15:06
Source code size: 113 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 533 / 536
Version history: 1 change(s)
Referenced in: [show references]