Computer Science Canada

Split?

Author:  aldreneo [ Wed Sep 13, 2006 5:19 pm ]
Post subject:  Split?

Does turing have split for an example:
code:

split("hello, bye, hi", ",", array)

Then it splits them into "hello" " bye" and " hi"

Author:  Cervantes [ Wed Sep 13, 2006 5:38 pm ]
Post subject: 

No, I don't believe it does. But you can easily write your own function to do that. You could define it recursively or iteratively.

You can also take it a step further and add your definition of this split function to the Turing library. Instructions on how to do this are found here


: