Skip to content

split string on delimiter #1910

Answered by triska
mvolkmann asked this question in Q&A
Jul 24, 2023 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

Maybe append/3?

?- append(Prefix, [.|Suffix], "foo.bar").
   Prefix = "foo", Suffix = "bar"
;  false.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@triska
Comment options

@mvolkmann
Comment options

@mvolkmann
Comment options

@triska
Comment options

Answer selected by mvolkmann
@david-sitsky
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants