Terrence asked:
> * What is the practical use of monadic Raze?
As an example I'm familiar with, the value of monadic
raze is clear in the following morse-code conversion:
; morsemap {~ charkey i. y
The result of 'charkey i. y' are indices of the
elements of morsemap that correspond to the letters
provided as input. Because the codes vary in length,
they were boxed to retain their individual lengths.
After using 'from' ({) to assemble the morse encodings
of each letter, razing the list makes it a simple
sequence of dits, dahs, and silences. Before and
after:
morsemap {~ charkey i. 'IVERSON'
+---+-----+--+----+----+----+---+
| ..| ...-| .| .-.| ...| ---| -.|
+---+-----+--+----+----+----+---+
; morsemap {~ charkey i. 'IVERSON'
.. ...- . .-. ... --- -.
For more details, see:
http://www.jsoftware.com/jwiki/Scripts/Morse
--
Tracy
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm