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? Should I download the library first?
split_string/4 - SWI- , SWI7. Prolog, SICStus, ISO, . , codes, . ' " Prolog?
split_string/4
codes
SWI, SWI6 , concat_atom/3 resp. atomic_list_concat/3, .
concat_atom/3
atomic_list_concat/3
?- atomic_list_concat(L,'_',a_b__c). L = [a,b,'',c].
ISO: atom_concat/3 sub_atom/5, . atomic_list_concat/3 .
atom_concat/3
sub_atom/5
Source: https://habr.com/ru/post/1544524/More articles:Formatting svn log output - svnAre there differences between view blocks or elements in cakephp? - cakephpCreating a Custom DataType Validation - c #Как использовать Stanford PRNG для генерации случайной строки? - javascriptOrder statistics in R? - maxError closing iframe in IE - javascriptCalculate amount in script in ABBYY Flexicapture - abbyyПочему сопоставления доминируют в любой разумной реализации? - sortingJSON padding in AngularJS using ng-options - jsonWeb API 2 и ASP Identity - обработка заблокированных пользователей - asp.net-identityAll Articles