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)

static S isAre(int n) {
  ret n == 1 ? "is" : "are";
}

static S isAre(Collection c) {
  ret isAre(l(c));
}

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: 428 / 454
Version history: 1 change(s)
Referenced in: [show references]