mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 19:49:36 +03:00
purge changelog
This commit is contained in:
parent
7a4ac98351
commit
c75d29af52
2 changed files with 0 additions and 49 deletions
|
@ -1,6 +0,0 @@
|
||||||
Fixed comparison bug in `std.algorithm.comparison.levenshteinDistance`
|
|
||||||
|
|
||||||
Previously the algorithm was allocating the amount of memory which was equal to
|
|
||||||
the size of the biggest range, that is $(BIGOH max(s.length, t.length)).
|
|
||||||
This is now fixed to be $(BIGOH min(s.length, t.length)).
|
|
||||||
For more details see $(REF levenshteinDistance, std, algorithm, comparison).
|
|
|
@ -1,43 +0,0 @@
|
||||||
`std.experimental.all` has been moved to `std`
|
|
||||||
|
|
||||||
`std.experimental.all` allowed the convenient use of all Phobos modules
|
|
||||||
with one import (`import std.experimental.all;`). With this release, this
|
|
||||||
convenience module has been stabilized and moved to `std`. From now on, the
|
|
||||||
convenience module can be accessed with `import std;`:
|
|
||||||
|
|
||||||
---
|
|
||||||
import std;
|
|
||||||
void main()
|
|
||||||
{
|
|
||||||
5f.iota.map!exp2.sum; // 31
|
|
||||||
}
|
|
||||||
---
|
|
||||||
|
|
||||||
Scripts and experimental code often use long and frequently changing
|
|
||||||
lists of imports from the standard library.
|
|
||||||
|
|
||||||
With this release it is possible to use `import std;` for importing the entire
|
|
||||||
standard library at once. This can be used for fast prototyping or REPLs:
|
|
||||||
|
|
||||||
---
|
|
||||||
import std;
|
|
||||||
void main()
|
|
||||||
{
|
|
||||||
6.iota
|
|
||||||
.filter!(a => a % 2) // 1 3 5
|
|
||||||
.map!(a => a * 2) // 2 6 10
|
|
||||||
.tee!writeln // peek into the processed stream
|
|
||||||
.substitute(6, -6) // 2 -6 10
|
|
||||||
.mean // (2 - 6 + 10) / 3
|
|
||||||
.reverseArgs!writefln("Sum: %.2f"); // 2
|
|
||||||
}
|
|
||||||
---
|
|
||||||
|
|
||||||
As before, symbol conflicts will only arise if a symbol with collisions is used.
|
|
||||||
In this case, $(LINK2 $(ROOT)spec/module.html#static_imports, static imports) or
|
|
||||||
$(LINK2 $(ROOT)spec/module.html#renamed_imports, renamed imports) can be used
|
|
||||||
to uniquely select a specific symbol.
|
|
||||||
|
|
||||||
The baseline cost for `import std;`
|
|
||||||
is less than half a second (varying from system to system) and
|
|
||||||
work is in progress to reduce this overhead even further.
|
|
Loading…
Add table
Add a link
Reference in a new issue