Created
December 31, 2020 15:55
-
-
Save hassanRsiddiqi/131e967f1368205902505370f54da586 to your computer and use it in GitHub Desktop.
Convert string into List.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you can use ~W or ~w to convert strings into list. | |
~w""" | |
...> the | |
...> cat | |
...> sat | |
...> """ | |
# ["the", "cat", "sat"] | |
str = "This is Test String" # "This is Test String" | |
~w<#{str}> # ["This", "is", "Test", "String"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment