<?php

require __DIR__.'/../vendor/autoload.php';

use igorw\edn;

$person = new edn\Map();
$person[edn\keyword('name')] = 'igorw';

$list = new edn\LinkedList([
    edn\symbol('foo'),
    edn\symbol('bar'),
    edn\symbol('baz'),
    edn\keyword('qux'),
    1.0,
    $person,
]);

$edn = edn\encode([$list]);
echo "$edn\n";

<?php

require __DIR__.'/../vendor/autoload.php';

use igorw\edn;

$person = new edn\Map();
$person[edn\keyword('name')] = 'igorw';

$list = new edn\LinkedList();
$list->push(edn\symbol('foo'));
$list->push(edn\symbol('bar'));
$list->push(edn\symbol('baz'));
$list->push(edn\keyword('qux'));
$list->push(1.0);
$list->push($person);

$edn = edn\encode([$list]);
echo "$edn\n";

--- 
+++ 
@@ -7,13 +7,14 @@
 $person = new edn\Map();
 $person[edn\keyword('name')] = 'igorw';
 
-$list = new edn\LinkedList();
-$list->push(edn\symbol('foo'));
-$list->push(edn\symbol('bar'));
-$list->push(edn\symbol('baz'));
-$list->push(edn\keyword('qux'));
-$list->push(1.0);
-$list->push($person);
+$list = new edn\LinkedList([
+    edn\symbol('foo'),
+    edn\symbol('bar'),
+    edn\symbol('baz'),
+    edn\keyword('qux'),
+    1.0,
+    $person,
+]);
 
 $edn = edn\encode([$list]);
 echo "$edn\n";
Fix example to not use push
