Thank you.

On Mon, Dec 30, 2013 at 1:15 AM, Henry Rich <[email protected]> wrote:

> printf operates on atoms of the right operand, unboxing them if they are
> boxed.
>
>
>     a=: 1 2 34 4
>    '%j%s\n' printf a;''
> 1 2 34 4
>
>    '%j' printf <a
> 1 2 34 4
>    '%s' printf <''
>
> Henry Rich
>
>
> On 12/29/2013 5:21 PM, Ni Bo wrote:
>
>> Hello,
>>
>> I've tried the following lines of code using printf:
>>
>>      a=: 1 2 34 4
>>
>>     '%j%s\n' printf a;''
>>
>> 1 2 34 4
>>
>>
>>     '%j' printf a
>>
>> |length error: exeformat
>>
>> |   '%j'    printf a
>>
>>     '%s' printf 'asdf'
>>
>> |length error: exeformat
>>
>> |   '%s'    printf'asdf'
>>
>>     '%s%s' printf 'asdf';''
>>
>> asdf
>>
>>
>> Am I using printf as I shouldn't by trying '%s' printf 'asdf' or '%j'
>> printf a?
>>
>>
>>
>> Thanks and regards,
>>
>> Nick
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>>  ----------------------------------------------------------------------
> 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