# coding=utf-8 name = 'insert/3' slug = 'insert an element into list' description = '''\

insert(X, L1, L2): the list L2 is obtained from L1 by inserting the element X at arbitrary position.

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