P.S. Also note that the >> and << links are "Next" and "Previous" -
they lead to adjacent pages.

Thanks,

-- 
Raul

On Wed, Apr 9, 2014 at 3:21 PM, Raul Miller <[email protected]> wrote:
> You probably want:
>   (x,y)$5
>
> And while boxes do enclose mismatched types, allowing them to be
> combined without much thought, any function whose results are of a
> compatible type can be used to combine arguments.
>
> For example:
>    'The number of seconds ',":secs
>
> Here's the documentation on ":
>    http://www.jsoftware.com/help/dictionary/d602.htm
>
> And, if you have time, any of the links from the top of that page lead
> to documentation that might interest you. For example:
> http://www.jsoftware.com/help/learning/contents.htm
>
> Thanks,
>
> --
> Raul
>
> On Wed, Apr 9, 2014 at 3:13 PM, Ray Zhao <[email protected]> wrote:
>> Hi all, I have two small questions:
>> 1. How do you use variables as such:
>> x y $ 5
>> I have found many examples with actual nums such as 5 6 $ 6 and I know that
>> x y is a syntax error, but I'm not sure how to make it NOT a syntax error.
>>
>> 2. Can different types, when combined, only produce boxes? This is much
>> less of a concern for me but I think it's worth confirming:
>> One example is:
>> secs=.5
>> 'The number of seconds '; secs
>> I have searched a little on the vocabulary site and all the examples that I
>> have seen with > (open) only unbox same types. , (append) also only appends
>> the same types too.
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to