Retired
Create Split and Join Methods for Lua (retired)
12yusemog
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
Similar Kata:
Stats:
Created | Apr 27, 2024 |
Warriors Trained | 14 |
Total Skips | 0 |
Total Code Submissions | 44 |
Total Times Completed | 12 |
Lua Completions | 12 |
Total Stars | 1 |
% of votes with a positive feedback rating | 30% of 5 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 5 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |