[Jprogramming] Challenge 6 Many Many Cherry Trees
Marc Simpson
marc at 0branch.com
Sun Feb 26 19:26:09 HKT 2012
On Sun, Feb 26, 2012 at 10:08 AM, Linda Alvord <lindaalvord at verizon.net> wrote:
> What is the difference between these two?
Grammar.
> ]\.'abcde'
> abcde
> bcde
> cde
> de
> e
Look at the documentation for (\.),
http://www.jsoftware.com/help/dictionary/d431.htm. The left argument
to the suffix adverb \. is expected to be a verb or gerund. As such,
(]\.) produces a valid derived verb that applies right-identity to
suffixes of 'abcde'. Another example,
<\.'abcde'
+-----+----+---+--+-+
|abcde|bcde|cde|de|e|
+-----+----+---+--+-+
where <\. is a derived verb that boxes suffixes.
> 'abcde'\.'abcde'
> |domain error
> | 'abcde'\.'abcde'
The domain error is due to the left argument to suffix (\.) being a
noun rather than a verb. By way of analogy, consider the difference
between,
'abc'/
|domain error
| 'abc'/
and
]/
]/
Best,
M
More information about the Programming
mailing list