PHP » GoLang |
login |
register |
about
|
GoLang Ds\Deque::sorted
request it (351)
GoLang replacement for PHP's Ds\Deque::sorted
[edit | history]
Ds\Deque::sorted(PECL ds >= 1.0.0) Ds\Deque::sorted — Returns a sorted copy Description
Returns a sorted copy, using an optional Parameters
Return ValuesReturns a sorted copy of the deque. ExamplesExample #1 Ds\Deque::sorted() example
<?php The above example will output something similar to: Ds\Deque Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) Example #2 Ds\Deque::sorted() example using a comparator
<?php The above example will output something similar to: Ds\Deque Object ( [0] => 5 [1] => 4 [2] => 3 [3] => 2 [4] => 1 ) |
more
Recently updated
more
Most requested
more
Last requests
|