Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
you mean it evaluates to string each loop thus having O(n^2) time complexity
Tbh performance is sometimes not as much of a concern as clean readability that Linq provides. Practicing and working with Linq will be a skill you can easily use on many future projects whereas a custom parser will take extra time for minimal returns on something like a kata.
It all depends on what the requirements are.
For small input sizes Linq and regular expression based solution is likely great.
For large input size and/or performance sensitive pieces of code, custom parsing might be required.
Seriously, this deserves more votes.
You forgot to add
/* GENERATED BY A TOOL, DO NOT EDIT */
:DYeah, this Linq oneliners are growing boring.
From the next string parsing excersise, I think I will start using state machines and what I call "structured gotos".
Clever for readability, but performance-wise to_string will anyway have to do an extra loop for you ;-)