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

14
LINES

< > BotCompany Repo | #1006574 // Riddle 2 [works]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1228L/9K/27K).

!7

p {
  assertEquals_match("houses", continue("
    the plural of day is days
    the plural of spouse is spouses
    the plural of house is...
  "));
  print("ok");
}

sS continue(S s) {
  ret nextToLastWord(s) + "s";
}

Author comment

Began life as a copy of #1006572

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: #1006574
Snippet name: Riddle 2 [works]
Eternal ID of this version: #1006574/1
Text MD5: d760e6e069ad984666661a8c7efc3fce
Transpilation MD5: f3ca1a00fc841f6bc4aabd5c3f3984a5
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-18 03:31:28
Source code size: 235 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 569 / 689
Referenced in: