mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Style fix: package wide std.algorithm imports
This commit is contained in:
parent
c5ba7c7d0b
commit
1ca4d31e21
2 changed files with 3 additions and 2 deletions
|
@ -1562,7 +1562,7 @@ private void sort5(alias lt, Range)(Range r)
|
|||
{
|
||||
assert(r.length >= 5);
|
||||
|
||||
import std.algorithm : swapAt;
|
||||
import std.algorithm.mutation : swapAt;
|
||||
|
||||
// 1. Sort first two pairs
|
||||
if (lt(r[1], r[0])) r.swapAt(0, 1);
|
||||
|
|
|
@ -70,7 +70,8 @@ int main(string[] args)
|
|||
uint ranseed = std.random.unpredictableSeed;
|
||||
thisTid;
|
||||
int[] a;
|
||||
import std.algorithm : sort, reverse;
|
||||
import std.algorithm.sorting : sort;
|
||||
import std.algorithm.mutation : reverse;
|
||||
reverse(a); // adi
|
||||
sort(a); // qsort
|
||||
Clock.currTime(); // datetime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue