1 | static <A> Collection<A> pnlStructIndent(Collection<A> l) {
|
2 | int i = 0; |
3 | if (l != null) for (A a : l) printIndent((++i) + ". " + struct_noStringSharing(a)); |
4 | ret l; |
5 | } |
6 | |
7 | static <A> A[] pnlStructIndent(A[] l) {
|
8 | pnlStructIndent(asList(l)); |
9 | ret l; |
10 | } |
11 | |
12 | static <A, B> Map<A, B> pnlStructIndent(Map<A, B> map) {
|
13 | pnlIndent(map(map, func(A a, B b) { sfu(a) + " = " + sfu(b) }));
|
14 | ret map; |
15 | } |
Began life as a copy of #1008537
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013394 |
| Snippet name: | pnlStructIndent - pnlStruct + indent |
| Eternal ID of this version: | #1013394/3 |
| Text MD5: | 51e2b7133bb5c3e1ec86504b9df19750 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-05 01:07:26 |
| Source code size: | 403 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 641 / 682 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |