I am trying to use the supposedly built-in predicate split_string/4 from the documentation here: http://www.swi-prolog.org/pldoc/man?predicate=split_string/4
However, when I try to use it, as in the example, I get something like this:
?- split_string("a.b.c.d", ".", "", L).
ERROR: toplevel: Undefined procedure: split_string/4 (DWIM could not correct goal)
What am I doing wrong? Am I supposed to load some library first?