<strike>This is a feature request. Something like this: ```php create_map( ['cat', 'bear', 'aardvark'], function($element, $index, $collection) { return strlen($element); } ); /* returns [ 'cat'=>3, 'bear'=>4, 'aardvark'=>8 ]; */ ``` I'm not sure what that function would be called, I admit that it should have a better name than `create_map` </strike> Couldn't properly explain what I want in the original post, see a comment below: https://github.com/lstrojny/functional-php/issues/164#issuecomment-402945532