For part 2 it was satisfying when it clicked that my {⍉⊖Tilt⊖⍉⊖Tilt⊖⍉Tilt⍉Tilt⍵} could be simplified to ⌽⍤⍉⍤Tilt⍣4 :)
@Adám Nice. I like how 1 and 2 match up with the rank of the output.
I actually tried doing ⊃⎕NGET'file'2 in RIDE on my AoC input a few days ago and was surprised it worked, except it didn't; the character vector it was outputting just looked like a character matrix since there were newlines in it.
Looks like ⎕NGET actually does 2∘| to the numeric code?
I guess it is because the subroutine checking for arguments are kinda shared between a family of system functions and there is no customization for checking flag range
> Write a function that: • takes a right argument that is a non-empty character vector or scalar. • takes a left argument that is a non-empty character vector or scalar.
> • returns a 2-element vector of character vectors in which the right argument is split immediately before the first occurence of any element in the left argument. If no left-argument element occurs in the right argument, then the split should happen after the last element of the right argument.