9 lines
237 B
Prolog
9 lines
237 B
Prolog
?- msort(['lions, tigers, and', 'bears, oh my!', '(from the "Wizard of OZ")'], [X, Y, Z]).
|
|
X = '(from the "Wizard of OZ")',
|
|
Y = 'bears, oh my!',
|
|
Z = 'lions, tigers, and'.
|
|
|
|
?- msort([77444, -12, 0], [X, Y, Z]).
|
|
X = -12,
|
|
Y = 0,
|
|
Z = 77444.
|