示例#1
0
 /**
  * Return a list of items from the given ApiCall
  * @param  ApiCall $apiCall [description]
  * @return [type]           [description]
  */
 function listFromApiCall(ApiCall $apiCall)
 {
     $self = $this;
     return iter\map(function ($record) use($self) {
         return $self->byStub($record);
     }, $apiCall);
 }
 private function revisionFor(Contract $streamContract, Identifier $streamId)
 {
     $pluckStreamRevision = __\property('streamRevision');
     return $this->maximum(_\map($pluckStreamRevision, _\filter($this->belongsToStream($streamContract, $streamId), $this->records)));
 }