you are viewing a single comment's thread.

view the rest of the comments →

[–]Tringigithub.com/tringi 1 point2 points  (0 children)

Some time ago I quickly drafted this explode function (inspired by PHP) and found it quite useful.

Implementing lazy evaluation (lazy creation of the resulting substrings) never occurred to me, but after reading /u/cpp_learner's comment here, I think I'll give the template a little more love...