Fix problem 6
This commit is contained in:
parent
acbbd1cdb8
commit
4d7d974ecd
1 changed files with 2 additions and 2 deletions
|
@ -104,11 +104,11 @@
|
||||||
∇
|
∇
|
||||||
|
|
||||||
∇ text←templateFile Merge jsonFile;template;ns
|
∇ text←templateFile Merge jsonFile;template;ns
|
||||||
template←⊃⎕NGET templateFile
|
template←⊃⎕NGET templateFile 1
|
||||||
ns←⎕JSON⊃⎕NGET jsonFile
|
ns←⎕JSON⊃⎕NGET jsonFile
|
||||||
⍝ We use a simple regex search and replace on the
|
⍝ We use a simple regex search and replace on the
|
||||||
⍝ template.
|
⍝ template.
|
||||||
text←('@[a-zA-Z]*@'⎕R{ns getval ¯1↓1↓⍵.Match})template
|
text←↑('@[a-zA-Z]*@'⎕R{ns getval ¯1↓1↓⍵.Match})template
|
||||||
∇
|
∇
|
||||||
|
|
||||||
⍝ 2020 APL Problem Solving Competition Phase II
|
⍝ 2020 APL Problem Solving Competition Phase II
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue