addshore
05/14/2025, 2:42 PMfloitsch
05/14/2025, 9:19 PMaddshore
05/15/2025, 9:55 AMfilteredInbox := comms.inbox "filtered" --filter=(::
return it.type == messages.Heartbeat.MT
)
Only to remember that doesnt work 😛floitsch
05/15/2025, 10:01 AMkasperl
05/15/2025, 6:39 PMaddshore
05/15/2025, 6:40 PMkasperl
05/15/2025, 6:54 PMkasperl
05/15/2025, 6:57 PMaddshore
05/16/2025, 10:16 AMLambdas can be stored and used later. and lambdas cannot use return at all.
But also Blocks cannot. be storedfloitsch
05/16/2025, 12:56 PMreturn always returns from the current method. It never just leaves the current block or lambda. I think you would like it to just return from the lambda.
In both cases (blocks and lambdas), either the last value is automatically returned, or you can use a continue.XXX to "continue in XXX". So in your case it would be
filtered-inbox := comms.inbox "filtered" --filter=(:: continue.inbox it.type == messages.Heartbeat.MT)floitsch
05/16/2025, 12:56 PMret) but never agreed that this was a good idea.addshore
05/16/2025, 1:12 PM