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

9
LINES

< > BotCompany Repo | #1003521 // Test list comprehension (simple filter)

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

Libraryless. Click here for Pure Java version (1437L/10K/34K).

!752

p {
  L<S> list = splitAtSpace("hello world !");
  list = [S s in list | isIdentifier(s)];
  printStructure(list);
  assertEquals("hello world", join(" ", list));
  print("OK");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
1239 stefan Works!! :-) 2016-07-11 01:41:45

add comment

Snippet ID: #1003521
Snippet name: Test list comprehension (simple filter)
Eternal ID of this version: #1003521/1
Text MD5: c6b1e7f667a2566bd665a0f9fd4e2b21
Transpilation MD5: e22971c9a584749f532cb16daa4a4059
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-15 17:39:51
Source code size: 193 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 929 / 972
Referenced in: [show references]