Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions std/array.d
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,13 @@ Source: $(PHOBOSSRC std/_array.d)
*/
module std.array;

static import std.algorithm.iteration; // FIXME, remove with alias
// of splitter
import std.functional : unaryFun;
import std.meta : AliasSeq, allSatisfy, staticMap;
import std.range.primitives : ElementEncodingType, ElementType, hasLength,
isBidirectionalRange, isForwardRange, isInfinite, isInputRange,
isOutputRange, isRandomAccessRange, put;
public import std.range.primitives : save, empty, popFront, popBack, front,
back;
import std.traits : ForeachType, Unqual, hasElaborateAssign,
hasElaborateCopyConstructor, hasIndirections, isArray, isAssignable,
isDynamicArray, isImplicitlyConvertible, isIntegral, isIterable, isMutable,
isNarrowString, isSomeChar, isSomeString, isStaticArray;
import std.meta;
import std.traits;
import std.functional;
static import std.algorithm.iteration; // FIXME, remove with alias of splitter

import std.range.primitives;
public import std.range.primitives : save, empty, popFront, popBack, front, back;

/**
* Allocates an array and initializes it with copies of the elements
Expand Down Expand Up @@ -350,7 +344,7 @@ See_Also: $(REF Tuple, std,typecons)
*/

auto assocArray(Range)(Range r)
if (isInputRange!Range)
if (isInputRange!Range)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add the space back.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an automatic revert & the spaces before the if constraint are the common Phobos style

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilzbach we've gone back and forth with the style. I think if should be flush with the previous line (no extra indent). Could you please work your magic on the autotester to make it so? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've gone back and forth with the style. I think if should be flush with the previous line (no extra indent).

dlang/dlang.org#1534

Could you please work your magic on the autotester to make it so?

I will give it a try :)

{
import std.typecons : isTuple;

Expand Down