Post History
APL(Dyalog Unicode), 26 bytes SBCS {⊃x/⍨⊃¨⍺∘⍷¨x←,∘⍵¨(⊂⍬),,\⍺} Try it on APLgolf! A dfn submission which takes the inputs as left and right argument. I took way too long to come up with this. ...
Answer
#1: Initial revision
# [APL(Dyalog Unicode)][1], <sup><s></s></sup>26 bytes <sup>[SBCS][2]</sup> ``` {⊃x/⍨⊃¨⍺∘⍷¨x←,∘⍵¨(⊂⍬),,\⍺} ``` [Try it on APLgolf!](https://razetime.github.io/APLgolf/?h=AwA&c=q37U1Vyh/6h3BZA@tOJR765HHTMe9W4/tKLiUdsEHTBn66EVGo@6mh71rtHU0YkBKqkFAA&f=U3d0cnZxdVNXSFNQd3Vz9/BUV@DiUncEA7CgoyOMAxJ3cgYLGhoZg/kQFSAT1AE&i=AwA&r=tryAPL&l=apl-dyalog&m=dfn&n=f) [1]: https://dyalog.com [2]: https://github.com/abrudz/SBCS A dfn submission which takes the inputs as left and right argument. I took way too long to come up with this. Fun challenge.