However I understand that Rayon only works on an arraylike type (ie. it cant work on an iterator)
It actually can work on iterators using par_bridge
. Here's an example of doing that:
However I understand that Rayon only works on an arraylike type (ie. it cant work on an iterator)
It actually can work on iterators using par_bridge
. Here's an example of doing that: