Skip to content

Commit

Permalink
Document improvements in the Change Log
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed Mar 15, 2016
1 parent 7b3d744 commit 9ddd455
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion changelog.dd
Expand Up @@ -15,7 +15,13 @@ $(LI $(XREF std_meta, Repeat) was added to obtain a repeating
$(XREF std_meta, AliasSeq) consisting of template arguments.)
$(LI $(D fold) was added as an alternative to $(D reduce) with argument order swapped.)
$(LI $(RELATIVE_LINK2 nextPow2, Added nextPow2 and truncPow2 to std.math.))

$(LI $(REF bsf core,bitop), $(REF bsr core,bitop), and $(REF popcnt, core,bitop) now
work with ulongs on 32 bit systems.)
$(LI $(REF topN std,algorithm,sorting) is now 5% - 7% faster.)
$(LI $(RELATIVE_LINK2 unary, Unary overloads of $(REF startsWith std,algorithm,searching) and
$(REF endsWith std,algorithm,searching) were added.))
$(LI $(RELATIVE_LINK2 maxCount, $(REF maxCount std,algorithm,searching) and
$(REF maxPos std,algorithm,searching) were added.))
)

$(BUGSTITLE Library Changes,
Expand All @@ -34,6 +40,27 @@ assert(truncPow2(4000) == 2048);
------
)

$(LI $(LNAME2 unary, Unary overloads of $(REF startsWith std,algorithm,searching) and
$(REF endsWith std,algorithm,searching) were added.)
------
import std.algorithm.searching;
import std.ascii : isAlpha;

assert("abc".endsWith!isAlpha);
assert(!"ab1".endsWith!(a => a.isAlpha));

assert("abc".startsWith!isAlpha);
assert(!"1ab".startsWith!isAlpha);
------
)

$(LI $(LNAME2 maxPos, $(REF maxCount std,algorithm,searching) and
$(REF maxPos std,algorithm,searching) were added.)
$(P Previous to this addition, in order to get the number of the greatest
elements, you had to use `minCount!"a > b"`, which was very confusing.
This change adds convenience functions to fix this issue.)
)

)

Macros:
Expand Down

0 comments on commit 9ddd455

Please sign in to comment.