MathPHP\SetTheory\Set::asArray PHP Method

asArray() public method

Get the set as an array
public asArray ( ) : array
return array (values are the set members)
    public function asArray() : array
    {
        return $this->A;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @dataProvider dataProviderForSingleSet
  */
 public function testAsArrayAnotherWay(array $members)
 {
     $set = new Set($members);
     $array = $set->asArray();
     $new_set = new Set($array);
     $this->assertEquals($new_set, $set);
 }
All Usage Examples Of MathPHP\SetTheory\Set::asArray