Search

August 24, 2011
Issues »
...find("<");
    auto len = s[start..$].find(">");
    s = s.remove(tuple(start, start+len+1));
    writeln...
August 21, 2011
General »
...solution(sol[-1]):
        if best or len(sol) < len(best):
            best = list(sol)
    else:
        for...
August 15, 2011
Learn »
...immutable(byte)* ptr = data.ptr;
    auto ptr_len = data.length;

    // Making an immutable copy is...
August 15, 2011
Learn »
...or similiar) len then
b[0.. len]
is a slice starting b conatining len elements...
August 12, 2011
General »
...j) + 1)) for j in range(1, len(q)+1)]

Instead of:

foreach (j; 1...
August 10, 2011
General »
...657
658     assert (i >= 0 && i < deque->len);
659     if (_deque_rotate(deque, -i) == -1...
August 08, 2011
General »
...0..len])
    {
        result ~= x.stringof ~ " " ~ fields[y] ~ ", ";
    }

    result = result[0.. $-2] ~ ") { ";

    foreach (x; 0 .. len...
August 06, 2011
General »
...auto arr = (cast(int*)alloca(len * int.sizeof))[0 .. len];
    //Now worry about default values...
August 04, 2011
Issues »
...solution(sol[-1]):
        if best or len(sol) < len(best):
            best = list(sol)
    else:
        for...
August 03, 2011
Learn »
...open Pandora's box?


Small example:

int len(const char[] c) {
    return c.length;
}

struct...
77 78 79 80 81 82 83 84 85 86 87 88
Next ›   Last »