ThreadSky
About ThreadSky
Log In
hanicka.net
•
205 days ago
You can use ctre::split for part2.
Comments
Log in
with your Bluesky account to leave a comment
[–]
tristanbrindle.com
•
205 days ago
Good to know! I use Advent of Code for testing Flux so I probably miss nice ways in which other libraries can be used :)
0
reply
[–]
hanicka.net
•
205 days ago
I personally enjoy using std ranges:
subject | ctre::search_all<"regex"> | std::views::transform...
2
1
reply
[–]
tristanbrindle.com
•
205 days ago
I didn't realise CTRE could use the pipe syntax, that's really cool!
1
1
reply
[–]
hanicka.net
•
205 days ago
Once I will have some time I will do transform which will accessing specific group from regex...
subject | ctre::search_all<"([0-9]+),([0-9]+)"> | std::views::transform(capture<2>)
or
subject | ctre::search_all<"([0-9]+),([0-9]+)"> | capture<2>
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
subject | ctre::search_all<"regex"> | std::views::transform...
subject | ctre::search_all<"([0-9]+),([0-9]+)"> | std::views::transform(capture<2>)
or
subject | ctre::search_all<"([0-9]+),([0-9]+)"> | capture<2>