You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This underlines the last 3 mojo examples in red and says unterminated backtick identifier though they still generate correctly when hovering over the function name
fnsplit[
maxsplit: Int = -1
](self, owneddelimiter: String ="") -> List[String]:
"""Split the string by a delimiter. This defaults to universal newlines [just as Python](https://docs.python.org/3/library/stdtypes.html). Parameters: maxsplit: The maximum amount of items to split from String. Defaults to unlimited. Args: delimiter: The string to split on. Returns: A List of Strings containing the input split by the delimiter. Examples: Splitting a space: ```mojovars= String("hello world").split("") # ["hello", "world"] ``` Splitting adjacent delimiters: ```mojovars= String("hello,,world").split(",") # ["hello", "", "world"] ``` Splitting adjacent universal newlines: ```mojovars= String("hello \\t\\n\\r\\f\\v\\x1c\\x1e\\x85world").split() # ["hello", "world"] ``` Splitting with maxsplit: ```mojovars= String("1,2,3").split[maxsplit=1](",") # ['1', '2,3'] ``` Splitting an empty string or filled with whitespaces: ```mojovars= String("").split() # []vars= String("").split() # [] ``` Splitting a string full of the delimiter: ```mojovars= String(",,,").split(",") # ["", "", "", ""] ``` ."""....
Steps to reproduce
Include relevant code snippet or link to code that did not work as expected.
If applicable, add screenshots to help explain the problem.
If using the Playground, name the pre-existing notebook that failed and the steps that led to failure.
Include anything else that might help us debug the issue.
System information
- What OS did you do install Mojo on ?
- Provide version information for Mojo by pasting the output of `mojo -v``mojo 2024.5.1705`
mojo nightly vscode extension `v2024.5.1705`
- Provide Modular CLI version by pasting the output of `modular -v`
The text was updated successfully, but these errors were encountered:
Bug description
This underlines the last 3 mojo examples in red and says
unterminated backtick identifier
though they still generate correctly when hovering over the function nameSteps to reproduce
System information
The text was updated successfully, but these errors were encountered: