*Package maintainers* please note that the library version number was
bumped, so rebuilding the addon modules is required. Sorry for the hassle.
Source: http://pure-lang.googlecode.com/files/pure-0.41.tar.gz
Windows MSI: http://pure-lang.googlecode.com/files/pure-0.41.msi
Windows users please note that the pd-pure and pure-gtk packages were
updated accordingly. Download links:
http://pure-lang.googlecode.com/files/pd-pure-0.10.msi
http://pure-lang.googlecode.com/files/pure-gtk-0.5.msi
Enjoy! :)
Albert
--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: Dr.G...@t-online.de, a...@muwiinfa.geschichte.uni-mainz.de
WWW: http://www.musikinformatik.uni-mainz.de/ag
I like the records.
I only wonder, if for typical record usage, "delete" shouldn't remove
all entries for the given key.
Or at least a "delete_all" should be added.
Max
I think that the current version is appropriate, because insert/update
also updates just one entry, not all of them.
> Or at least a "delete_all" should be added.
That's a one-liner:
> delete_all x y = {a | a@(k=>_) = x; k ~== y} if recordp x;
> delete_all {x=>1,y=>2,x=>3} x;
{y=>2}
Only the basic record operations are in the prelude, but as you can see
you can easily add the stuff that you need. That's the nice thing about
having records implemented as matrices, as these already offer some
really powerful operations.