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)

1  
static S singularFromPlural(S plural) {
2  
  S singular = singular(plural);
3  
  if (!isPluralOf(plural, singular))
4  
    fail("Not a plural: " + plural);
5  
  ret singular;
6  
}

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: 486 / 528
Referenced in: [show references]