Transpiled version (5155L) is out of date.
1 | sS mapMethodLike renderVarsInMultipleLines(O... params) { |
2 | new LS l; |
3 | int i = 0; |
4 | S header = null; |
5 | if (odd(l(params))) { |
6 | header = strOrNull(first(params)); |
7 | addIfNempty(l, header); |
8 | ++i; |
9 | } |
10 | for (; i+1 < l(params); i += 2) |
11 | l.add(stringIf(nempty(header), " ") + params[i] + "=" + params[i+1]); |
12 | ret lines_rtrim(l); |
13 | } |
Began life as a copy of #1024543
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035014 |
Snippet name: | renderVarsInMultipleLines |
Eternal ID of this version: | #1035014/4 |
Text MD5: | c7cd30e92518fb3b9b3dbfb1a9a94cf4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-22 23:35:09 |
Source code size: | 350 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 195 |
Version history: | 3 change(s) |
Referenced in: | [show references] |