Reputation: 37
I am new to prolog and I would like to convert a string: 'test string' to an array with a single element: ['test string'] so I can append it to an existing list.
'test string'
['test string']
Upvotes: 0
Views: 97
Reputation: 15316
Just write it as is:
X='test string'. List=[X].
Upvotes: 1