Are there some helpers in Phobos equivalent to std::set_difference of ugly c++

Ali Çehreli acehreli at yahoo.com
Fri Feb 3 17:11:35 UTC 2023


On 2/3/23 08:01, Richard (Rikki) Andrew Cattermole wrote:
> All good, I'm glad it'll work for you :)
> 
> I used the word difference to search the phobos docs with.

'fold' is doing much better in that department because it mentions other 
names: "Implements the homonym function (also known as accumulate, 
compress, inject, or foldl) present in various programming languages of 
functional flavor."

   https://dlang.org/library/std/algorithm/iteration/reduce.html

Ali



More information about the Digitalmars-d-learn mailing list