Created
February 16, 2023 01:51
-
-
Save 0racle/0020e0a1c3f120baab31d724086925e6 to your computer and use it in GitHub Desktop.
Parsing 2 ways
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
Parse =. (' ' joinstring ])@((3 1 0 { ])`(6 4 1 { ])@.(5 < #@]))@;: | |
<@Parse;._2 'x-' rplc~ fread 'input' | |
NB. or | |
Parse =. (' ' joinstring |.@}. , {.)@('rect|row|column|\d+'&rxall) | |
<@Parse"1 'm' fread 'input' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment