2017-05-24 73 views
0

我们如何创建剪辑的RHS侧整数数组的规则的整数数组..如何在RHS创建CLIPS

我试图

(bind ?new_ints (numbers ?new_count ?new_bad_count ?new_good_count)) 

的想法是,NEW_COUNT,new_bad_count ,new_good_count应该进入new_ints。

它不工作。

回答

1

CLIPS中没有多维数组的基本数据类型。您可以使用多字段值来表示一维数组:

CLIPS> (bind ?array (create$ 1 2 3)) 
(1 2 3) 
CLIPS> (nth$ 3 ?array) 
3 
CLIPS> (length$ ?array) 
3 
CLIPS> 
+0

谢谢你的作品 – naren