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

10
LINES

< > BotCompany Repo | #2000334 // Line replacer to text replacer (pseudo code)

New Tinybrain snippet

prepend:

  List<String> result = new ArrayList<String>();
  for line in toLines(s) {
  
append:

  result.add(line);
  }
  return fromLines(result);

download  show line numbers   

Snippet is not live.

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

Comments [hide]

ID Author/Program Comment Date
134 #1000604 (pitcher) 2015-08-18 00:47:19
126 #1000610 (pitcher) Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
prepend:

List<String> result = new ArrayList<String>();
for line in toLines(s) {

append:

result.add(line);
}
return fromLines(result);

}}
2015-08-18 00:47:01

add comment

Snippet ID: #2000334
Snippet name: Line replacer to text replacer (pseudo code)
Eternal ID of this version: #2000334/1
Text MD5: 227e2eca8f1d8f81effe27b90283a946
Author: stefan
Category: javax
Type: New Tinybrain snippet
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-05-06 19:34:07
Source code size: 160 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 803 / 119
Referenced in: [show references]