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

21
LINES

< > BotCompany Repo | #1002112 // n function

JavaX fragment (include)

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: 706 / 2156
Version history: 2 change(s)
Referenced in: [show references]