开发者

lists inside a list

开发者 https://www.devze.com 2023-01-21 05:08 出处:网络
i am writing a predicate in prolog to delete an atom in a list, but i stuck on how to check if the atom is whether a list inside a list. a开发者_运维百科ny suggestions.Iterate throughout a list and ge

i am writing a predicate in prolog to delete an atom in a list, but i stuck on how to check if the atom is whether a list inside a list. a开发者_运维百科ny suggestions.


Iterate throughout a list and get type of each element and compare if it is atom's type, if not return desired bool.

0

精彩评论

暂无评论...
验证码 换一张
取 消