1 | static void ai_spec_analyzeLitList(S s) { |
2 | if (!startsWithAndEndsWith(s, "[", "]")) ret; |
3 | L l = cast safeUnstructure_nullAndPrintShortOnError(s); |
4 | if (l == null) ret; |
5 | post(s, "is a list with length", l(l)); |
6 | for i over l: |
7 | post(structure(l.get(i)), "is element " + (i+1) + " in", s); |
8 | } |
Began life as a copy of #1012784
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: | #1012791 |
Snippet name: | ai_spec_analyzeLitList - post list's length and elements |
Eternal ID of this version: | #1012791/5 |
Text MD5: | db523a82b63c3141cc0f5fc94b10c1a1 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-13 15:53:23 |
Source code size: | 301 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 501 |
Version history: | 4 change(s) |
Referenced in: | [show references] |