IF Computer > IF/Prolog > Manuals > IF/Prolog V4.1 マニュアル > IF/Prolog V4.1 レファレンスマニュアル > # append

# append

IF/Prolog by Siemens
MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. Dedicated technical support for IF/Prolog ended Dec 31 2008. This site is maintained as a community service only.

# append(?リスト1,?リスト2,?リスト3)

「リスト3」は、「リスト1」と「リスト2 」を連結したものです。append/3の引数のうち1つあるいは2つが値を持っている場合には、残りの引数が適切な結果に単一化されます(以下の例題を参照して下さい)。3つの引数のすべてが値を持っているときは、IF/Prologはその文の証明を試みます。

関連 concat, length, list, member, reverse, sort

?- append([a,b],L,[a,b]). L = [] yes ?- append([a,b,c],L,P).

L = _656 P = [a,b,c|_656]; no ?- append(L,K,[a,b,c]).

L = [] K = [a,b,c];

L = [a] K = [b,c];

L = [a,b] K = [c];

L = [a,b,c] K = []; no ?- _

document: http://www.ifcomputer.co.jp/IFProlog/Manuals/v4.1/reference/append/print_en.html
published 2012/5/21 update 1995/10/27 (c) 1996-2009 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS