Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add lines function to std lib #73

Merged
merged 1 commit into from
May 22, 2024

Conversation

Ph0enixKM
Copy link
Member

Adds a library function for splitting string into lines

import { lines } from "std"

loop line in lines("hello\nworld") {
    echo line
}
// Outputs: ["hello", "world"]

@Ph0enixKM Ph0enixKM linked an issue May 22, 2024 that may be closed by this pull request
@Ph0enixKM Ph0enixKM self-assigned this May 22, 2024
@Ph0enixKM Ph0enixKM merged commit c3db2ca into master May 22, 2024
1 check passed
@Ph0enixKM Ph0enixKM deleted the 71-feature-request-cast-command-output-to-array branch May 22, 2024 10:32
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.

[Feature Request] cast command output to array
1 participant