Camel case and snake case: Difference between revisions
m
→{{header|Factor}}: improve comment
m (→{{header|Factor}}: clean up) |
m (→{{header|Factor}}: improve comment) |
||
Line 173:
=={{header|Factor}}==
In my interpretation of the task, leading/trailing whitespace should be ignored, not trimmed. And non-leading/trailing whitespace should be dealt with the same way as underscores and hyphens. Although the task says nothing about numbers, I chose to treat letter->number and number->letter transitions the same way as lower->upper for the sake of converting to snake case.
{{works with|Factor|0.99 2021-06-02}}
<lang factor>USING: formatting kernel math regexp sequences splitting
|