Jan 30, 2014; 22:11
Justin Dennis
Lasso 9 Hangs on Inserting Pair with Map Value into Array?
Hi -
Question posted to Stack Overflow to let the world know that Lasso exists,
and is far more prominent than whatever stats package is vying for our
"lasso" tag:
http://stackoverflow.com/questions/21471734/lasso-9-hangs-on-inserting-pair-with-map-value-into-array
And now for the question:
I have a result set for which I want to insert a pair of values into an
array for each unique key, as follows:
resultset(2) => {
records => {
if(!$logTypeClasses->contains(field('logTypeClass'))) => {
local(i) = pair(field('logTypeClass'), map('title' field('logType'), 'class' = field('logTypeClass')))
log_critical(#i)
$logTypeClasses->insert(#i) // Lasso hangs on this line, will
return if commented-out
}
}
}
Strangely, I cannot insert the #i local variable into thread variable
without Lasso hanging. I never receive an error, and the page never
returns. It just hangs indefinitely.
I do see the pairs logged correctly, which leads me to believe that the
pair-generating syntax is correct.
I can make the code work as long as the value side of the pair is not a map
with values. In other words, it works when the value side of the pair is a
string, or even an empty map. As soon as I add key=value parameters to the
map, it fails.
I must be missing something obvious. Any pointers? Thanks in advance for
your time and consideration.
- Justin
#############################################################
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>
Jan 31, 2014; 08:43
Justin Dennis
Re: Lasso 9 Hangs on Inserting Pair with Map Value into Array?
Jan 31, 2014; 08:55
Brad Lindsay
Re: Lasso 9 Hangs on Inserting Pair with Map Value into Array?