split/4

split(+ Line,+ Separators,- Split)*

split(+ Line,+ Separators,- Split)*

Unify Words with a set of strings obtained from Line by using the character codes in Separators as separators. As an example, consider:


 ?- split( "Hello * I am free" , " *" ,S).

 S = [ "Hello" , "I" , "am" , "free" ] ?

 no

Unify Words with a set of strings obtained from Line by using the character codes in Separators as separators. As an example, consider:


 ?- split("Hello * I am free"," *",S).
 S = ["Hello","I","am","free"] ?
 no