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

6
LINES

< > BotCompany Repo | #1021777 // gazelle_inputMapFromLineAndHistory

JavaX fragment (include)

static SS gazelle_inputMapFromLineAndHistory(S line, LS history) {
  SS inputMap = litmap(standard := line);
  for (int i = 0; i < l(history); i++)
    inputMap.put("history-" + (l(history)-i), history.get(i));
  ret inputMap;
}

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: #1021777
Snippet name: gazelle_inputMapFromLineAndHistory
Eternal ID of this version: #1021777/3
Text MD5: 04bde9484011f704fce44db7b20164f5
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-26 12:29:09
Source code size: 233 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 213 / 256
Version history: 2 change(s)
Referenced in: [show references]