src/ORM/DataList.php
public function distinct($value)
    {
        return $this->alterDataQuery(function (DataQuery $query) use ($value) {
            $query->distinct($value);
        });
    }
public function distinct($value)
    {
        return $this->alterDataQuery(function (DataQuery $query) use ($value) {
            $query->distinct($value);
        });
    }
public function distinct ( $ value ) { return $ this -> alterDataQuery ( function ( DataQuery $ query ) use ( $ value ) { $ query -> distinct ( $ value ) ; } ) ; }
Return a new DataList instance with distinct records or not

@param bool $value
@return static
Return a new DataList instance with distinct records or not