mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
![]() These two functions are related but play two different roles: std.algorithm.sorting.merge takes a static number of ranges of possibly disparate types (but compatible elements), and is useful for composing ranges at compile-time. However, it cannot take a variable number of ranges at runtime because all ranges must be statically known. That latter role is played std.algorithm.setops.multiwayMerge, which takes a range of ranges to merge, and so can merge a variable number of ranges at runtime. However, because of that, it cannot merge ranges of disparate types (of compatible elements), and so is unsuitable for compile-time range composition, unless a workaround like the range class interface is used. The docs for these two functions really should cross-reference each other so that users can more easily find the correct function for their needs. |
||
---|---|---|
.. | ||
comparison.d | ||
internal.d | ||
iteration.d | ||
mutation.d | ||
package.d | ||
searching.d | ||
setops.d | ||
sorting.d |