Yep - as I was reading the replies from you and Esteban - I was thinking there
was something odd, and its correct, I’ve been careless - the problematic code
had a trailing #sum to it, which is actually where the problem was….
total := schedule ifEmpty: [ 0 ] ifNotEmpty: [ :c |
Hi Tim,
What I found confusing there is that with #select:thenCollect: or
#collect:thenXxx: you're always dealing with collections.
In your #collect:ifNone: there is a mix. You can return a collection
(#collect:) or the result of evaluating the emptyBlock, which in your
example is a number, so I
Hi - I hit a small bug in my lunch experiments with Willow where I wanted to
sum up a collection of support hours.
I was collect: in the hours worked and hadn’t accounted for an empty collection.
When I went to do it I was surprised there isn’t a concept of #collect:ifNone:
that mirrors
Hi, all..
I have an instance variable that I don’t want to save as part of the full
project. I was wondering how to set this up.
The documentation says:
Lastly, attributes can be excluded from storage (and hence retrieval) by re-
turning a VOMongoTransientDescription instance as the attribute