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)

static S n3(long l, S singular) {
  ret n2(l, singular, plural_mech(singular));
}

static S n3(Collection l, S singular) {
  ret n3(l(l), singular);
}

static S n3(Map m, S singular, S plural) {
  ret n3(l(m), singular);
}

static S n3(O[] a, S singular, S plural) {
  ret n3(l(a), singular);
}

ifclass MultiSet
  static S n3(MultiSet ms, S singular, S plural) {
    ret n3(l(ms), singular);
  }
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: 410 / 432
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)