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

7
LINES

< > TinyBrain | #1013627 - versionsOfSnippet - starts with current text - return texts as L<S>

JavaX fragment (include)

static L<S> versionsOfSnippet(S snippetID) {
  L<S> l = ll(loadSnippet(snippetID));
  for (SnippetVersion v : versionsOfSnippetWithText(snippetID))
    if (eq(v.change, "Text changed"))
      l.add(v.previousValue);
  ret l;
}

Author comment

Began life as a copy of #1012250

download  show line numbers  debug dex   

Travelled to 6 computer(s): cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1013627
Snippet name: versionsOfSnippet - starts with current text - return texts as L<S>
Eternal ID of this version: #1013627/5
Text MD5: cb782392fe67594f0620e0561595827e
Author: stefan
Category: javax / snippets
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-11 17:26:43
Source code size: 232 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 30 / 51
Version history: 4 change(s)
Referenced in: [show]