On Tuesday, 16 March 2021 at 07:43:18 UTC, drug wrote:
That means that you GZippedRange should provide opSlice
operator and should be a narrow string (string of char or wchar)
Yes, I should have looked more carefully at the doc, I was
assuming splitter would accept a simple input range, but
On 3/16/21 1:58 AM, David Skluzacek wrote:
>
> Error: template std.algorithm.iteration.splitter cannot deduce
function from argument types !()(GZippedFile, string), candidates are:
> /usr/include/dlang/dmd/std/algorithm/iteration.d(4678):
splitter(alias pred = "a == b", Range, Separator)(Range
I came across this problem as I was trying to see if could write
a quick range-based solution with std.zlib to do what was asked
about in a different Learn forum post - read a gzipped file.
This seems like it should work:
import std.stdio, std.algorithm, std.zlib;
import std.range.primitives;