Thank you very much
all the information were super
I got some problem on the difference between atom variable and list of
single element
that is clear now
Paolo
On Wed, Jul 8, 2015 at 1:19 PM, 'Bo Jacoby' via Programming <
programm...@jsoftware.com> wrote:
> I wonder who takes away the linefeeds
I wonder who takes away the linefeeds from my emails to programming forum. They
are incomprehensible anyway so further destruction is not needed. :)
Den 13:00 onsdag den 8. juli 2015 skrev Joe Bogner :
Good question! That has tripped up many people (including myself)
Elaborating
Good question! That has tripped up many people (including myself)
Elaborating on both fine answers:
If you aren't sure why you need enclose the atom in a list, this might help:
Question: What are the shapes of each of the items in the list?
$ each ;: 'cc dd f h gg zz'
┌─┬─┬─┬─┬─┬─┐
│2│2│1│1│2│
Thank you
I will read again the chapter on indexing
On Wed, Jul 8, 2015 at 12:04 PM, Brian Schott
wrote:
> Elaborating on Bo's fine answer and (hopefully) adding line feeds.
>
>(<'h') E. each a
> ┌───┬───┬─┬─┬───┬───┐
> │0 0│0 0│0│1│0 0│0 0│
> └───┴───┴─┴─┴───┴───┘
>(<,'h') E. a
> 0 0
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Strale
Sent: Wednesday, July 8, 2015 5:49 AM
To: programm...@jsoftware.com
Subject: [Jprogramming] Question on E. command
Hello I am trying to learn J
Elaborating on Bo's fine answer and (hopefully) adding line feeds.
(<'h') E. each a
┌───┬───┬─┬─┬───┬───┐
│0 0│0 0│0│1│0 0│0 0│
└───┴───┴─┴─┴───┴───┘
(<,'h') E. a
0 0 0 1 0 0
(<,'dd') E. a
0 1 0 0 0 0
--
(B=)
--
(<,'h') E. a0 0 0 1 0 0 (<,'dd') E. a0 1 0 0 0 0
Den 11:49 onsdag den 8. juli 2015 skrev Strale :
Hello I am trying to learn J
and trying to make a function to tokenise strings
I have tried the E. command but I cannot have it working to search 1 char
token
ex:
[a=. ;:
Hello I am trying to learn J
and trying to make a function to tokenise strings
I have tried the E. command but I cannot have it working to search 1 char
token
ex:
[a=. ;: 'cc dd f h gg zz'
┌──┬──┬─┬─┬──┬──┐
│cc│dd│f│h│gg│zz│
└──┴──┴─┴─┴──┴──┘
(<'h') E. a
0 0 0 0 0 0
but w