Thread overview
[Issue 16282] Partial permutation/nextPermutation in std.algorithm
Jul 18, 2016
greenify
Jul 19, 2016
Wyatt
Jul 20, 2016
greenify
Dec 17, 2022
Iain Buclaw
July 18, 2016
https://issues.dlang.org/show_bug.cgi?id=16282

greenify <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify@gmail.com

--- Comment #1 from greenify <greeenify@gmail.com> ---
Does maybe mir.combinatorics help you?

http://docs.mir.dlang.io/latest/mir_combinatorics.html

I once tried to push for that to be included into Phobos, but there was too much resistance. I hope eventually we can move combinatorial back to Phobos. For more details:

https://github.com/dlang/phobos/pull/4026

My argument at that time was that e.g. Python's itertools.product has 160K uses on github.

--
July 19, 2016
https://issues.dlang.org/show_bug.cgi?id=16282

--- Comment #2 from Wyatt <wyatt.epp@gmail.com> ---
I guess it might?  It looks about how I had envisioned it, but I'm not really jazzed about the idea of installing an entire mathematics package for a one-off script I was expecting to take fifteen minutes.

As for the reasoning, I just figured this was obvious? I mean, there probably isn't an introductory text on permutation that doesn't cover the constrained case.

--
July 20, 2016
https://issues.dlang.org/show_bug.cgi?id=16282

--- Comment #3 from greenify <greeenify@gmail.com> ---
> It looks about how I had envisioned it, but I'm not really
jazzed about the idea of installing an entire mathematics package for a one-off script I was expecting to take fifteen minutes.

Do you know about the new inline dub header? At least that's the tradeoff I am taking at the moment.

#!/usr/bin/env dub
/+ dub.sdl:
name "foo"
dependency "mir" version="0.15.3"
+/

In any case I recommend making a bit of fuzz at the NG (forum.dlang.org) as this thread isn't monitored by many people. D developers are actually quite responsive to constructive feedback :)

> As for the reasoning, I just figured this was obvious?

Yes, when I needed it I was shocked too and thus wrote the small combinatorics module :/

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16282

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--