Retired

Create Split and Join Methods for Lua (retired)

Description:

In many other programming languages (like Python, Java, etc.), there is a string.split() and a string.join() method.

The split method separates a string based off a separator provided (otherwise the delimiter is a space).

The join method brings together different values in an array, and the user provides what is in between the array values.

For any invalid inputs (like when str == nil or empty), simply return nil!

Now, create these methods for Lua!

Algorithms
Strings

More By Author:

Check out these other kata created by yusemog

Stats:

CreatedApr 27, 2024
Warriors Trained14
Total Skips0
Total Code Submissions44
Total Times Completed12
Lua Completions12
Total Stars1
% of votes with a positive feedback rating30% of 5
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes2
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • yusemog Avatar
Ad