Hi,
I want to sum lengths of all strings in array:
auto data = ["qwerty", "az", "!!!!"];

Fold and reduce doesn't work:
auto result = data.fold!`a + b.length`(0U);

gives error:
static assert: "Incompatible function/seed/element: binaryFun/uint/string"

How to do it in one line?

Reply via email to