xref: /ext-ds/sandbox.php (revision 23d055da)
1<?php
2
3$vector = new \Ds\Vector();
4$vector->push(new DateTime());
5
6$sequence = $vector->map(function (DateTime $_dateTime) { return $_dateTime->format(DateTime::ISO8601);});
7
8$sequence->push(new DateTime());
9$sequence->push(new DateTime());
10
11$sequence->push(new DateTime());
12$sequence->push(new DateTime());
13
14$sequence->push(new DateTime());
15$sequence->push(new DateTime());
16
17$sequence->push(new DateTime());
18$sequence->push(new DateTime());
19$sequence->push(new DateTime());
20$sequence->push(new DateTime());
21$sequence->push(new DateTime());
22$sequence->push(new DateTime());
23$sequence->push(new DateTime());
24$sequence->push(new DateTime());
25$sequence->push(new DateTime());
26$sequence->push(new DateTime());
27$sequence->push(new DateTime());
28$sequence->push(new DateTime());
29$sequence->push(new DateTime());
30$sequence->push(new DateTime());
31$sequence->push(new DateTime());
32$sequence->push(new DateTime());
33$sequence->push(new DateTime());
34$sequence->push(new DateTime());
35
36var_dump($sequence);
37
38echo 'done';