operator: find-unique

    description:
        find-unique[op1, op2, ... , opn]
        learn the kets that are unique with respect to the given operator(s)
        
    examples:
        -- load our data:
        load fred-sam-friends.sw
        
        -- show the common friends between Fred and Sam:
        -- (these are the ones that are not unique)
        common[friends] split |Fred Sam>
            |Jack> + |Emma> + |Charlie>

        -- find the unique friends for Fred and Sam:
        find-unique[friends]
        
        -- display the results:
        dump
            ----------------------------------------
             |context> => |context: friends>
            previous |context> => |context: global context>
            
            friends |Fred> => |Jack> + |Harry> + |Ed> + |Mary> + |Rob> + |Patrick> + |Emma> + |Charlie>
            unique-friends |Fred> => |Harry> + |Ed> + |Mary> + |Rob> + |Patrick>
            
            friends |Sam> => |Charlie> + |George> + |Emma> + |Jack> + |Rober> + |Frank> + |Julie>
            unique-friends |Sam> => |George> + |Rober> + |Frank> + |Julie>
            ----------------------------------------

    see also:
        find-inverse, common

Home