Created
March 25, 2021 12:01
-
-
Save xpqz/2cab73665d6bc4b20629a65275b4a62d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merge←{ | |
templ←⎕JSON (⊃⎕NGET ⍺) | |
keys←templ.⎕NL¯2 | |
vals←templ.(⍎¨#.keys) | |
(({'@',(⍕⍵),'@'}¨keys),(⊂'@@'),⊂'@[^@]+@')⎕R((⍕¨vals),(⊂,'@'),⊂'???')⊢⊃⎕NGET ⍵ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment