Nested templated data: Difference between revisions
Content deleted Content added
added Factor |
Thundergnat (talk | contribs) →{{header|Perl 6}}: More concisely |
||
Line 89:
=={{header|Perl 6}}==
{{works with|Rakudo|2018.04.01}}
Explicitly not using strings, using one data structure to fill in another. Since it ''isn't'' a string, the output format removes the newlines from the template; line
<lang perl6>say join "\n ", '##PAYLOADS:', |my @payloads =
Payload#0▼
Payload#1▼
Payload#2▼
Payload#3▼
Payload#4▼
Payload#5▼
Payload#6▼
for [
Line 111 ⟶ 101:
5),)
] {
say
say "Data structure: {
}</lang>
{{out}}
<pre>##PAYLOADS:
<pre> Template: $(((1, 2), (3, 4, 1), 5),)▼
▲ Payload#0
▲ Payload#1
▲ Payload#2
▲ Payload#3
▲ Payload#4
▲ Payload#5
▲ Payload#6
Data structure: ((("Payload#1", "Payload#2"), ("Payload#3", "Payload#4", "Payload#1"), "Payload#5"),)
|