Skip to content

Simple string concatenation #100

@xkqqkx

Description

@xkqqkx

I could not figure out how to concatenate list of strings. For example, I would like to modify the PS1 prompt variable by prepending a string. The function join is supposed to work on lists but in my experience it won't take a list as an input. So this for some reason works (join "," "item1" "item2") but this does not (join "," (list "item1" "item2")). It would also be helpful to have a function that splits a string by white space or by a separator passed as parameter and returns a list of strings. IMHO such and similar string manipulation functions would be quite useful while being just a generalization of what's already available for path manipulations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions