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

5
LINES

< > BotCompany Repo | #1021144 // languageToTwoLetters

JavaX fragment (include)

sS languageToTwoLetters(S s) {
  if (eqic(s, 'german)) ret 'de;
  if (eqic(s, 'english)) ret 'en;
  ret s;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021144
Snippet name: languageToTwoLetters
Eternal ID of this version: #1021144/1
Text MD5: c3629305dc0fe1932db6f249a32d30d2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-23 23:20:40
Source code size: 112 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 286 / 339
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)