| |||||||||||
| concatenates or splits atoms.
atom_concat(+Atom1, +Atom2, -Atom3)
| |||||||||||
| atom_concat('this is', ' an example', A3). | Succeeds with substitution A3 <- 'this is an example' |
| atom_concat(A1, A2, 'abc'). | Succeeds with substitutions {A1 <- '', A2 <- 'abc'} {A1 <- 'a', A2 <- 'bc'} {A1 <- 'ab', A2 <- 'c'} {A1 <- 'abc', A2 <- ''} |
| atom_concat(Basename, '.txt', 'hello.txt'). | Succeeds with substitutions {Basename <- hello} |
This predicate is part of the ISO-Prolog Standard.
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/atomic_term/atom_concat/print_de.html published 2008/10/6 update 1997/6/22 (c) 1996-2006 IF Computer Japan | ||||||||
|
| Back> |
|