Zsbán, I am having trouble understanding your solution, so I got the list
another way:
]A=:1 2 3 { 8 32 $ a. NB. Example from definition of a.
!"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
`abcdefghijklmnopqrstuvwxyz{|}~
]AL=:_5}."1 1}."1 A
!"#$%&'()*+,-./0123456789:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
]L=:15}.,AL
0123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
f=: 13 :'((i.#y)~:y i. '':'')#y' NB. Remove the : from list
f
] #~ ([: i. #) ~: ':' i.~ ]
f L
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Here's where I got lost in your solution:
a.#~2|a.i.&0@/:@,"{'/9@Z`z'
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
g=: 13 :'a.#~2|a.([:([:(i.&0)/:),)"1 0 _ y'
g '/9@Z`z'
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
g
a. #~ 2 | a. ([: ([: i.&0 /:) ,)"1 0 _ ]
NB. u&n y is defined as y u n
NB. x u&n y ↔ u&n^:x y
I can't seem to unlock what happens at the heart of it.
What does this do?
([: i.&0 /:)
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Zsbán Ambrus
Sent: Friday, January 25, 2013 7:34 AM
To: [email protected]
Subject: Re: [Jprogramming] List all alphanumeric characters
On Thu, Jan 24, 2013 at 9:40 PM, Zsbán Ambrus <[email protected]> wrote:
> a.#~2|a.i.&0@/:@,"{'09AZaz'
This one doesn't work correctly, so replace it by this.
a.#~2|a.i.&0@/:@,"{'/9@Z`z'
Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm