I wrote:
> I typed +/i.1e8 and had an answer back in less
> than a breath.
>
> I am impressed.
Furthermore, I just created an array of rank 2^28 :
a =. 1 $~ 1 #~ 2^28
#...@$ a
268435456
2 ^. #...@$ a
28
How many languages can do that? I bet you could play a lot of fun tricks
with ranks like that.
secrets =. 'secret data'
3 {. secret_binary =. (8#2) #: a. i. secrets
0 1 1 1 0 0 1 1
0 1 1 0 0 1 0 1
0 1 1 0 0 0 1 1
, secret_binary
0 1 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 1 1 ...
'x' $~ , secret_binary
shh =. 'x' $~ , secret_binary
shh NB. Nobody here....
$ shhh
0 1 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 1 1 ...
a. {~ 2 #. _8 ]\ $ shhh
secret data
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm