- Subject: [jed-users] Re: JED - coding in S-lang
- From: Morten Bo Johansen <mbj@xxxxxxxxx>
- Date: Sun, 12 Dec 2021 11:58:26 +0100
Duke Normandin <dukeofpurl@xxxxxxx> wrote:
> Still at it ..
>
> Learning S-lang using Jed as my editor.
>
> Having problems with Jed rendering { .. } brackets.
> I want to write the following:
>
> variable data = {{1}, 2, {{3,4}, 5}, {{{}}}, {{{6}}}, 7, 8, {}}
>
> But Jed insists that the very first bracket is starting a block o
> What I want is to write a list.
> Is there a solution to this formatting issue? TIA
For me it returns:
slsh> data = {{1}, 2, {{3,4}, 5}, {{{}}}, {{{6}}}, 7, 8, {}};
slsh> vmessage("%S", data);
List_Type with 8 elements
slsh> foreach(data) { d=(); vmessage("%S", d); };
List_Type with 1 elements
2
List_Type with 2 elements
List_Type with 1 elements
List_Type with 1 elements
7
8
List_Type with 0 elements
It seems right to me ..?
You can access the items like e.g.
slsh> vmessage("%S", data[2][1][0]);
5
If you expect something else, then please be more precise.
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2021 date index]
[2021 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]