[Jprogramming] k programming challenge
Henry Rich
henryhrich at gmail.com
Wed Jan 27 21:26:01 UTC 2016
That's not |. in the lower-right - it's I.
Dissect displays ~ indirectly: by switching the wiring (for x u~ y) or
wiring a result to both x and y (for u~ y).
Here, the display is streamlined considerably: the block for ] is
deleted (replaced by a wire) and the verb ' '"_ is shown simply as a
constant. The m} block has a left input from ' '"_, a right input from
tolower, and a control input (on the right) from I. . tolower feeds
into 3 blocks: toupper, =, and m} .
If you want to see more of the original, you can go to Preferences and
check 'Show ][ and 0-9:'. See if you like that better.
Henry Rich
On 1/27/2016 12:34 PM, Brian Schott wrote:
> Raul,
>
> Thanks very much for that fine explanation.
> I had been thrown off by your use of ~ as reflexive, not passive.
>
> I was also surprised that ;: does not work directly, and that is apparently
> what made your verb necessary first.
>
> Below is an ascii rendition of words in Dissect.
> It did not inform me and confused me because reflexive does not appear
> anywhere,
> and because |. appears in the lower right corner of the window.
>
> I apologize for the crude rendering, but I thought such was superior to
> posting an image link. It was accomplished using the online app at
> http://asciiflow.com/.
>
>
>
> ([: ;: ' '"_`(I.@:= toupper)`]}~@tolower)y
> +----------------------------------+
> | y
> |
> | 66
> |
> |Though, of course, it's po...
> |
> |
> |
>
> +-----------------+----------------+
> |
>
> +-----------------+----------------+
> | tolower 1
> |
> |though, of course, it's po...
> |
> |
> |
> |
> |
>
> +-----------------+----------------+
> |
>
> +-----------------+----------------+
> | toupper 1
> |
> |THOUGH, OF COURSE, IT'S PO...
> |
> |
> |
> +----------+ |
> |
> | 1 (m"_) 1|
> +-----------------+----------------+
> | atom | |
> | |
> +-------------------+--------------+
> +-----+----+ | 0=0
> |
> | | 66
> |
> +-------------+-----------------+ |0000001000...
> |
> | 0 m} 1 | |
> |
> | 66 |
> +-----------------------------+----+
> |though of course it s po... | +---------------+ |
> +--------------+----------------+---------------+ |. 1 | |
> | | 12 +-----+
> +--------------+----------------+ |69161720223134 |
> | ;: 11 | +---------------+
> |though|of|course|it|s|po... |
> | |
> +-------------------------------+
>
>
>
>
More information about the Programming
mailing list