Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、2つのリストがあります。
L1=[1,0,1,0,1,1] L2=[2,3,4,2,1,1]
こんな感じでチェックしたい
if (L1[k]==0) sum=L2(k)
プロローグを使用してそれを行う方法はありますか?
nth0(Ind, Lst, Elem) enables random access to the list elements under SWI-Prolog