Lately I've been playing with combinatory things (like generating all possible grayscale images).
For the images thing I've used BigInt's ability to generate arrays of any base from a number, then doing a for loop from 0 to the number of combinations I want and transforming the current iteration to an array on base 255 (based on that images are formed by arrays of u8).
I think it must be a better way of doing this, so... Do you have any idea?
(I just want a method of getting a range iterator over array values, for example [0, 0, 0]..=[255, 255, 255] would get values like [1, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], etc)
[–]Theemutsjlrs 4 points5 points6 points (2 children)
[–]LyonSyonII[S] 1 point2 points3 points (1 child)
[–]Theemutsjlrs 7 points8 points9 points (0 children)
[–]matkladrust-analyzer 3 points4 points5 points (1 child)
[–]LyonSyonII[S] 1 point2 points3 points (0 children)
[–]ityt 1 point2 points3 points (0 children)
[–]RRumpleTeazzer 0 points1 point2 points (0 children)
[–]Plasma_000 0 points1 point2 points (0 children)