Skip to content

Instantly share code, notes, and snippets.

@akanehara
Created February 27, 2013 12:28
Show Gist options
  • Select an option

  • Save akanehara/5047584 to your computer and use it in GitHub Desktop.

Select an option

Save akanehara/5047584 to your computer and use it in GitHub Desktop.
Ginqのtoなんとか系整理案
<?php
/**
* toDictonary
* 廃止
* @deprecated
* @param \Closure $valueSelector
* @param \Closure $keySelector
* @param \Closure $combiner
* @return array
*/
function toDictionary($valueSelector, $keySelector, $combiner = null)
/**
* toArray
* キー衝突の解決だけでき、射影機能はもたない。射影は select で。
* @param \Closure $combiner
* @return array
*/
function toArray($combiner = null)
/**
* toList
* renum()->toArray() のショートカット
* @return array
*/
function toList()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment