name = 'sublist/2' slug = 'generate sublists of a list' description = '''\
sublist(L, SL)
: SL
is a continuous sublist of the
list L
. Your program should return every possible sublist; each
answer may be returned more than once.
?- sublist([1,2,3], X). X = [] ; X = [1] ; X = [1,2] ; X = [1,2,3] ; X = [2] ; X = [2,3] ; X = [3].''' hint = {}