Sequence
are not as transparent as they should
#1665
Labels
bug
Report of unexpected or faulty behaviour in Alfa
Sequence
are not as transparent as they should
#1665
While working on
alfa-test-utils
, I've noticed a weird case where forcing a sequence or not changes the results of a function, which should not happen due to referencial transparency.This seems to be linked to use of
.groupBy
as before using it nothing happened. Maybe also linked to hashability of stringEnum
.Inlining the computation of
ResultAggregates
discards all but the first outcomes fromoutcomes
. Forcing the evaluation of the sequence (e.g. with a dummy[...outcomes]
, or ….toJSON()
(which makes investigations tricky)) restores every thing. None of these should be impacting the result.Given that this is the first time we notice this, I'm letting it as is for now.
The text was updated successfully, but these errors were encountered: