Camel case and snake case: Difference between revisions

m
no edit summary
m (spacing)
mNo edit summary
Line 10:
;Task:
 
:* Write two functions, one to change snake case to camel case and one to change camel case to snake case. If possible, generalize the function enough to apply to strings containing spaces between words or a `-` dash between words, assuming that iinin those cases a space or hyphen is a also a separator character, like `_`, for the purpose of creating a new variable name. Leading or trailing whitespace may be ignored.
hyphen is a also a separator character, like `_`, for the purpose of creating a new varable name. Leading or trailing whitespace may be ignored.
 
:*Show the results on changing to both snake case and camel case for each of the following strings:
4,102

edits