id = 107 name = 'permute/2' slug = 'generate permutations of a list' description = '''\

permute(L1, L2): the list L2 is a permutation of the elements of the list L1.

  ?- permute([1,2,3], L).
    L = [1,2,3] ;
    L = [1,3,2] ;
    L = [2,1,3] ;
    L = [2,3,1] ;
    L = [3,1,2] ;
    L = [3,2,1].
''' hint = {}