Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The C++20 std::views::split and std::views::lazy_split produce a view over subranges obtained by splitting a range using a provided delimiter. std::views::lazy_split offers lazy processing; however, as a consequence, the modelled range is input/forward only. std::views::split will maintain the underlying range category. Compiler Explorer link: https://lnkd.in/eQ4H4nBj #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Weird, I kinda assumed split was lazy anyway.

Like
Reply

Great, now this is how the first part looks in Rust.

  • No alternative text description for this image
See more comments

To view or add a comment, sign in

Explore content categories