Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
var payloads=[1..6].pump(List,"Payload#".append);
|
||||
|
||||
fcn get(n){ try{ payloads[n - 1] }catch{ Void } }
|
||||
fcn sub(list){ list.pump(List, fcn(n){ if(n.isType(List)) sub(n) else get(n) }) }
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
foreach p in (T(
|
||||
T(T(T(1, 2),
|
||||
T(3, 4, 1),
|
||||
5),),
|
||||
T(T(T(1, 2),
|
||||
T(10,4, 1),
|
||||
5),))){
|
||||
println(" Template: %s\nData structure: %s".fmt(p,sub(p)));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue