Skip to content

Set::xor hangs #53

@basz

Description

@basz

Whilst trying to calculate a set of mutations the xor operation hangs

I expect $removalChangeSet to contain only ['member']

I'm using DS 1.0.4 extension on OSX

require 'vendor/autoload.php';

$roles             = new \Ds\Set(['guest', 'member']);
$requestedRemovals = new \Ds\Set(['member', 'nothing']);

$keepSet          = $roles->diff($requestedRemovals);
$removalChangeSet = $roles->xor($keepSet);

var_dump($removalChangeSet->toArray());

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions