Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
26
Task/Nested-templated-data/Julia/nested-templated-data.julia
Normal file
26
Task/Nested-templated-data/Julia/nested-templated-data.julia
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
t = ([Any[Any[1, 2],
|
||||
Any[3, 4, 1],
|
||||
5]])
|
||||
|
||||
p = ["Payload#$x" for x in 0:6]
|
||||
|
||||
for (i, e) in enumerate(t)
|
||||
if e isa Number
|
||||
t[i] = p[e + 1]
|
||||
else
|
||||
for (j, f) in enumerate(e)
|
||||
if f isa Number
|
||||
e[j] = p[f + 1]
|
||||
else
|
||||
for (k, g) in enumerate(f)
|
||||
if g isa Number
|
||||
f[k] = p[g + 1]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
show(t)
|
||||
Loading…
Add table
Add a link
Reference in a new issue