associative arrays
10 posts
• Page 1 of 1
associative arrays
Hello all,
I'm trying to create an associative array (like python dictionaries) in APL.
I found (on RosettaCode) the code using a "namespace"
http://rosettacode.org/wiki/Associative ... eation#APL
but I see no way to iterate through them.
Or I could create a class (with two fields : key and value) but I'm wondering if I could have a way like p[key] to access the values.
thanks in advance,
Fausto
I'm trying to create an associative array (like python dictionaries) in APL.
I found (on RosettaCode) the code using a "namespace"
http://rosettacode.org/wiki/Associative ... eation#APL
but I see no way to iterate through them.
Or I could create a class (with two fields : key and value) but I'm wondering if I could have a way like p[key] to access the values.
thanks in advance,
Fausto
- fausap
- Posts: 5
- Joined: Wed Sep 09, 2015 9:28 pm
Re: associative arrays
There is also http://aplwiki.com/KVP on the APL Wiki.
-
PGilbert - Posts: 436
- Joined: Sun Dec 13, 2009 8:46 pm
- Location: Montréal, Québec, Canada
Re: associative arrays
Hello !
thanks all! Very useful links indeed.
Fausto
thanks all! Very useful links indeed.
Fausto
- fausap
- Posts: 5
- Joined: Wed Sep 09, 2015 9:28 pm
Re: associative arrays
Hello,
I tried to install KVP using acre. (i'm using dyalog 14.0 unregistered-32bit)
I downloaded and decompressed the zip file, I also modified the INI file changing the ipaddress to acre.aplwiki.com, but when I try to download everything, I receive always a "Server not found" error message.
The server is reachable and pings ok.
So really I cannot understand why there's such error message.
thanks
Fausto
my ini file is:
I tried to install KVP using acre. (i'm using dyalog 14.0 unregistered-32bit)
I downloaded and decompressed the zip file, I also modified the INI file changing the ipaddress to acre.aplwiki.com, but when I try to download everything, I receive always a "Server not found" error message.
The server is reachable and pings ok.
So really I cannot understand why there's such error message.
thanks
Fausto
#.acre.GetProject'KVP'
Read configuration-file ...\SkyDrive\APL\acre.INI
Server not found
#.acre.GetProject'KVP'
∧
#.acre.Update''
Open public project: "Acre"
Loading 617 items from "...\APL\Acre\Acre.codefile"
Open public project: "Conga"
Loading 61 items from "...\APL\Conga\Conga.codefile"
Server not found
#.acre.Update''
∧
my ini file is:
- Code: Select all
[Acre]
ipaddress = acre.aplwiki.com
portnumber = 59753
username = default
password = default
- fausap
- Posts: 5
- Joined: Wed Sep 09, 2015 9:28 pm
Re: associative arrays
Sorry for that.
Recently I converted the APL wiki from Windows to Linux. That posed a problem because the acre server does not run under Linux (yet).
I got around this by moving the acre server to a different machine: acreserver.does-it.net. I should have updated the wiki pages accordingly but forgot to do this.
Recently I converted the APL wiki from Windows to Linux. That posed a problem because the acre server does not run under Linux (yet).
I got around this by moving the acre server to a different machine: acreserver.does-it.net. I should have updated the wiki pages accordingly but forgot to do this.
-
kai - Posts: 137
- Joined: Thu Jun 18, 2009 5:10 pm
- Location: Hillesheim / Germany
Re: associative arrays
Hello Kai,
I did the change in the ini file, but I receive the same error message.
In this case I can resolve the name, but the ping doesn't work (maybe it's ok due to a firewall preventing the reply, but with the other address the pings worked)
thanks,
Fausto
I did the change in the ini file, but I receive the same error message.
In this case I can resolve the name, but the ping doesn't work (maybe it's ok due to a firewall preventing the reply, but with the other address the pings worked)
thanks,
Fausto
C:\Users\Fausto\SkyDrive\APL\Acre\Acre saved Fri Sep 18 20:40:29 2015
Read configuration-file ...\SkyDrive\APL\acre.INI
#.acre.GetProject'KVP'
Read configuration-file ...\SkyDrive\APL\acre.INI
Server not found
#.acre.GetProject'KVP'
∧
- fausap
- Posts: 5
- Joined: Wed Sep 09, 2015 9:28 pm
Re: associative arrays
The ping won't work indeed.
However, I have identified the problem (I think), so please try again.
However, I have identified the problem (I think), so please try again.
-
kai - Posts: 137
- Joined: Thu Jun 18, 2009 5:10 pm
- Location: Hillesheim / Germany
Re: associative arrays
Hello Kai,
now it works!
Thanks
Fausto
now it works!
Thanks
Fausto
- fausap
- Posts: 5
- Joined: Wed Sep 09, 2015 9:28 pm
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group