IF Computer > IF/Prolog > Manuals > IF/Prolog V4.1 マニュアル > IF/Prolog Interfaces > FORTRANインタフェースマニュアル > イントロダクション > 作業を容易するIF/Prologライブラリ関数 > リストの取り扱い

リストの取り扱い

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. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

関数名

IFISLIST IFISNIL IFMKLIST IFNIL

概要

FUNCTION IFISLIST(LIST, HEAD, TAIL) TERM LIST TERM HEAD, TAIL

FUNCTION IFISNIL(TERM) TERM TERM

FUNCTION IFMKLIST(HEAD, TAIL) TERM HEAD, TAIL

FUNCTION IFNIL

IFISLISTは、第1引数が、リストを表すPrologのTERMであるかどうかをテストします。もしリストの場合には1を返し、HEADにリストの先頭を、TAILにリストの末尾を返します。それ以外の場合には、0を返します。

IFISNILは、TERMが空のリストであるかどうかをテストし、空の場合には1を返し、そうでない場合には0を返します。

IFMKLISTは、リスト[HEAD│TAIL]を構成する項を返します。

IFNILは、空リストである項を返します。

document: http://www.ifcomputer.co.jp/IFProlog/Manuals/v4.1/advanced_feature/fortran/intro/libfun/list/print_en.html
published 2008/9/1 update 1995/11/6 (c) 1996-2006 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