cost 324 ms
Where is D's `std.sumtype`?

I'm working on a project in the D language and I want to use a module from the standard library called std.sumtype. I'm on debian oldstable, and I've ...

How to use tolower in D

I want to to put the first letter of a string into lowercase in D. As a string is imutable in D, there doesn't seem to be a simple way. I came up wi ...

2019-04-03 08:41:20   2   59    d / phobos  
compilation issue with split/splitter

Here's simple code: Looks like it should work, but it won't compile. DMD 2.068.2 fails with this error: It compiles if I insert .array before .s ...

2015-10-28 00:03:55   1   344    d / phobos  
Remove substring from string in D

How to remove all occurrences of a string in another? I can do this using the following code: But I wonder if there is a dedicated function for thi ...

2015-10-02 09:15:44   1   126    d / phobos  
Where is Date roll is useful?

I am reading Phobos docs. Sometimes I can't understand the logic of some methods. Date roll Adds the given number of years or months to this Date ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM