miSCellaneous_lib icon indicating copy to clipboard operation
miSCellaneous_lib copied to clipboard

fixed corner case [1,1].lcmByFactors

Open chris75vie opened this issue 3 years ago • 1 comments

I'd expect that following lines result the same value

[1,1].reduce(\lcm);
[1,1].lcmByFactors[1];

Actually an empty list is returned in this case. Probably there's a more elegant way to implement this behaviour.

chris75vie avatar Jun 12 '21 06:06 chris75vie

Hi, thanks for the hint ! I'll add in the next offical version (which might take time).

dkmayer avatar Jun 12 '21 12:06 dkmayer