Libraryless. Click here for Pure Java version (1661L/10K/37K).
1 | !752 |
2 | |
3 | p { |
4 | assertEquals("5", structure(5)); |
5 | assertEquals("5L", structure(5L)); |
6 | assertEquals("[5, 5L]", structure(ll(5, 5L))); |
7 | |
8 | unstructure_debug = true; |
9 | L l = cast unstructure("[5, 5L]"); |
10 | assertEquals("[5, 5L]", structure(l)); |
11 | assertEquals(5, (int) l.get(0)); |
12 | assertEquals(5L, (long) l.get(1)); |
13 | print("ok"); |
14 | } |
Began life as a copy of #1002046
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004628 |
Snippet name: | Try structure/unstructure with int |
Eternal ID of this version: | #1004628/1 |
Text MD5: | dafaf8a4822bd0aa31658af3ff476118 |
Transpilation MD5: | eeab811b1f40da7d12325c5008a90934 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-28 22:01:28 |
Source code size: | 343 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 500 / 592 |
Referenced in: | [show references] |