Finding the length of lists within a list in Prolog

后端 未结 0 438
后悔当初
后悔当初 2020-12-13 22:34

For example:

count_blocks([[b,c,f],[a,d,g],[h,e]],C). C=[3,3,2]

I know that I can find the length of a list with:

len([], LenResult):- LenResult is 0.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题