?? ch08ex02.pro
字號:
/*
Turbo Prolog 2.0 Chapter 8, Example Program 2
Copyright (c) 1986, 88 by Borland International, Inc
*/
domains
list = integer* /* or whatever type you want to use */
predicates
length_of(list, integer)
clauses
length_of([], 0).
length_of([_|T], L) :- length_of(T, TailLength),
L = TailLength + 1.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -