1 | static <A> L<A> listGetOrCreate_List(LL<A> l, int i) { |
2 | if (l == null) null; |
3 | L<A> a = get(l, i); |
4 | if (a == null) |
5 | listSet(l, i, a = new L); |
6 | ret a; |
7 | } |
Began life as a copy of #1022705
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: | #1022706 |
Snippet name: | listGetOrCreate_List |
Eternal ID of this version: | #1022706/1 |
Text MD5: | 92501f5565952b9103b3ba6a2e00cde6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-31 21:52:40 |
Source code size: | 163 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 318 / 354 |
Referenced in: | [show references] |