Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save datashaman/d0db056b0d65bb47cc391daac5d3d3ff to your computer and use it in GitHub Desktop.
Save datashaman/d0db056b0d65bb47cc391daac5d3d3ff to your computer and use it in GitHub Desktop.
Datashaman\PHPCheck\growingElements Example
<?php
<<<CONFIG
packages:
- "datashaman/phpcheck: dev-wip"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\PHPCheck\growingElements;
use function Datashaman\PHPCheck\listOf;
use function Datashaman\PHPCheck\sample;
var_dump(sample(listOf(growingElements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]))));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment