Skip to content

Commit c423369

Browse files
committed
- Use ql::views::join not with the | syntax
1 parent 03d0412 commit c423369

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/index/TextIndexBuilder.cpp

+12-13
Original file line numberDiff line numberDiff line change
@@ -339,19 +339,18 @@ static auto fourLetterPrefixes() {
339339
static_assert(
340340
MIN_WORD_PREFIX_SIZE == 4,
341341
"If you need this to be changed, please contact the developers");
342-
return ql::views::iota('a', 'z' + 1) | ql::views::transform([](char a) {
343-
return ql::views::iota('a', 'z' + 1) |
344-
ql::views::transform([=](char b) {
345-
return ql::views::iota('a', 'z' + 1) |
346-
ql::views::transform([=](char c) {
347-
return ql::views::iota('a', 'z' + 1) |
348-
ql::views::transform([=](char d) {
349-
return std::string{a, b, c, d};
350-
});
351-
});
352-
});
353-
}) |
354-
ql::views::join | ql::views::join | ql::views::join;
342+
return ql::views::join(ql::views::join(ql::views::join(
343+
ql::views::transform(ql::views::iota('a', 'z' + 1), [](char a) {
344+
return ql::views::transform(ql::views::iota('a', 'z' + 1), [=](char b) {
345+
return ql::views::transform(
346+
ql::views::iota('a', 'z' + 1), [=](char c) {
347+
return ql::views::transform(ql::views::iota('a', 'z' + 1),
348+
[=](char d) {
349+
return std::string{a, b, c, d};
350+
});
351+
});
352+
});
353+
}))));
355354
}
356355

357356
/// Check if the `fourLetterPrefixes` are sorted wrt to the `comparator`

0 commit comments

Comments
 (0)