Mar 28
Steffan A. Cline Arrays of Maps and Remove()
Mar 28, 2014; 00:24
Steffan A. Cline
Arrays of Maps and Remove()
Running into an EXTREMELY intermittent issue with L9 and am stumped.
I have an array of maps.
I use the following to find maps that match the criteria in the array
define array->findMapsWith(item::pair) => {
return (
with map in self
where #map->find(#item->first) == #item->second
select #map
)->asStaticarray
}
The following code will work 90% of the time.
$myarray->findmapswith(=8Cproduct_id=B9=1234) & remove();
$myarray is an array, not a static array.
I am at a loss as to why sometimes with some ID=B9s, it doesn=B9t want to
remove the elements of the array.
Yes, the IDs are stored as integers. I search for an integer and the items
are inserted into the map as an integer as well. I have verified that the
returned element is the correct one but it just can=B9t get deleted no
matter what I do. Some IDs will delete and others won=B9t.
There is only one element that will ever be removed at a time.
Thanks
Steffan
---------------------------------------------------------------
T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline Steffan@ExecuChoice.net
http://www.ExecuChoice.net Phoenix, Arizona USA
---------------------------------------------------------------
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Mar 28
Steffan A. Cline Re: Arrays of Maps and Remove()
Mar 28, 2014; 00:54
Steffan A. Cline
Re: Arrays of Maps and Remove()
Mar 28
Steffan A. Cline Re: Arrays of Maps and Remove()
Mar 28, 2014; 00:56
Steffan A. Cline
Re: Arrays of Maps and Remove()
Mar 28
Ke Carlton Re: Arrays of Maps and Remove()
Mar 28, 2014; 22:17
Ke Carlton
Re: Arrays of Maps and Remove()
Mar 28
Brad Lindsay Re: Arrays of Maps and Remove()
Mar 28, 2014; 13:03
Brad Lindsay
Re: Arrays of Maps and Remove()