Skip to content

Implementation of str.partition() with tuples #1615

Closed
harshsingh-24 wants to merge 0 commit intolcompilers:mainfrom
harshsingh-24:str-partition
Closed

Implementation of str.partition() with tuples #1615
harshsingh-24 wants to merge 0 commit intolcompilers:mainfrom
harshsingh-24:str-partition

Conversation

@harshsingh-24
Copy link
Copy Markdown
Contributor

@harshsingh-24 harshsingh-24 commented Mar 24, 2023

  • Functionality: Split the string at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return a 3-tuple containing the string itself, followed by two empty strings.
  • Added sufficient test cases for integration testing along with proper comments for understanding

I will fix the conflicts.

@czgdp1807 czgdp1807 marked this pull request as draft March 24, 2023 12:54
Comment thread src/runtime/lpython_builtin.py
@harshsingh-24
Copy link
Copy Markdown
Contributor Author

Ignore this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants