Libraryless. Click here for Pure Java version (51L/1K).
static <A> L<A> syncAddOrCreate(L<A> l, A a) { if (l == null) l = syncList(); l.add(a); ret l; }
Began life as a copy of #1007606
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027848 |
| Snippet name: | syncAddOrCreate - add to list and create synced list if necessary |
| Eternal ID of this version: | #1027848/2 |
| Text MD5: | 750fbd1ecd416c1cfbc7639535051002 |
| Transpilation MD5: | 571b8c278b857173dae92d31952e6518 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-15 11:29:13 |
| Source code size: | 106 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 468 / 615 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |