I'm not talking about
3 $ 4
4 4 4
or even
3 $ i. 2 3
0 1 2
3 4 5
0 1 2
What happens when the right argument has no atoms? Like
3 $ (0$0)
?
3 $ (0$0)
|length error
You can see the problem. Since all empties are considered identical,
what value should Roger make 3 copies of?
But... do you have to make the right operand non-empty, or is there a
way to use $ with empty y?
There is...
3 $!.5 (0$0)
5 5 5
You can even keep the type of the empty:
3 $!.'' (0$0)
0 0 0
3 $!.'' (0$a:)
++++
||||
++++
As I read the Dictionary, this behavior is unexpected - but welcome.
Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm