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: | 220 / 262 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |