Please give a few examples of general arguments for which 3!:1 and
3!:2 do not work.  I believe in this thread we are talking about
nouns, so that would be a few examples of general noun arguments.



On Wed, Nov 9, 2011 at 7:06 PM, Marshall Lochbaum <[email protected]> wrote:
> That's what 1!:1 and 1!:2 are for. You should learn the first few of J's
> file foreigns; they are listed here:
> http://www.jsoftware.com/docs/help701/dictionary/dx001.htm
>
> Roger: yes, the conversions functions are somewhat nicer, but they don't
> work for general arguments. Until I feel like writing a serialization
> function that uses these and is general (or someone else gives me one--that
> would be awesome), I'll keep using 5!:5 for serialization of small values.
>
> Marshall
>
> On Wed, Nov 9, 2011 at 9:58 PM, Skip Cave <[email protected]> wrote:
>
>> Wow! that is great stuff! Thanks so much, Marshall.
>>
>> If I want to take a noun like 'all' which is just a list of text strings.
>> and save it as a standard text file 'all.txt' in a specific folder on my
>> system, how would you do that?
>>
>> Skip
>>
>> On Wed, Nov 9, 2011 at 8:34 PM, Marshall Lochbaum <[email protected]
>> >wrote:
>>
>> > (nl 0) lists all the nouns in boxed form, and 7!:5 gives the memory used
>> by
>> > a noun in boxed form, so
>> >   7!:5 nl 0
>> > gives you a nice list of all the memory being used.
>> >
>> > To save and recover a noun using a file, you can use the inverses (5!:5)
>> > and ". (". is a strict left inverse of 3 :'5!:5<''y''', at least).
>> > In other words, if your noun is named 'a', you can save it using
>> > (5!:5 <'a') 1!:2 <filename
>> > a =. ". 1!:1 <filename
>> >
>> > Mrshall
>> >
>> >
>> ----------------------------------------------------------------------
>> 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