Skip to content

Instantly share code, notes, and snippets.

@DavidMikeSimon
Created April 15, 2014 18:10
Show Gist options
  • Select an option

  • Save DavidMikeSimon/10754417 to your computer and use it in GitHub Desktop.

Select an option

Save DavidMikeSimon/10754417 to your computer and use it in GitHub Desktop.
<?php
R\chain::($myArray, [
[R\map, function ($i) { return $i*2; }],
[R\filter, function ($i) { return $i > 10; }]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment