Am 28.04.2020 um 17:02 schrieb Riccardo (Jack) Lucchetti:
On Tue, 28 Apr 2020, Allin Cottrell wrote:
> Filipe, Jack beat me to it, with a more concise and elegant version
> than I was writing
A few people will probably disagree (among whom: Sven, Alecos and
Stefano), but hey, I'm a conditional assignment junkie!
Well I use that assignment myself quite a lot, but your example before
this one was a _nested_ one!
Anyway, Alecos can speak for himself, but the way I understood him he
would be happier if your latest example read as follows:
<not-really-hansl>
...
# now compute the streaks
series streak = ok(x[1]) # initialise
series streak = streak(-1) + 1 .if. ok(x) .else. 0 # compute the actual
streaks
...
</not-really-hansl>
Here I used dotted fantasy versions ".if." and ".else." to highlight
the
vectorized and recursive impact of this assignment, but this is not
essential, it's non-existent syntax anyway.
Sorry for this OT post, but you started it, hehe.
cheers
sven