@dedbox has joined the channel
@targetstorm has joined the channel
@shu—hung has joined the channel
Do people tend to use fold
in a way where the accumulator variable is a hash or has multiple values?
@slack1 not typically, but it’s not unheard of
for/fold
is somewhat more common for that
Nuuu hehe
I am waiting for that one to update
I hear it will update soon
fwiw, for/fold
(the existing version) is still strictly more powerful than foldl
/ foldr
so I’m not sure what you mean by “waiting for it to update”
I don’t want to return multiple values on the last iteration
since it’s hard to handle multiple values in general
foldl
and foldr
don’t support multi-valued accumulators
but you can just use a list as a tuple
I mean for/fold
and something like #:finally
Otherwise I have to return multiple values, am I wrong?
ah right that #:return
keyword or whatever it is
#:result
you do have to return multiple values, but you could just ignore the values you don’t care about
You mean like in a let-values
?
yes
mm thanks I shall try it out