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

6
LINES

< > BotCompany Repo | #1005241 // singularFromPlural - get singular, assert that the input is actually the plural

JavaX fragment (include)

static S singularFromPlural(S plural) {
  S singular = singular(plural);
  if (!isPluralOf(plural, singular))
    fail("Not a plural: " + plural);
  ret singular;
}

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: #1005241
Snippet name: singularFromPlural - get singular, assert that the input is actually the plural
Eternal ID of this version: #1005241/1
Text MD5: de33e842ec292537466c2af7ba4592fb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-26 16:35:27
Source code size: 169 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 485 / 527
Referenced in: #1005242 - isPlural
#1006654 - Standard functions list 2 (LIVE, continuation of #761)