All new material, this time about one of the fundamental functional datastructures, the Linked List, and the overview of an implementation in Moosey Perl.
This covers some of the same material as https://github.com/osfameron/pure-fp-book but perhaps with more explanation (and covering much less material - it was only a 20 minute talk)
43. List::Empty
class List::Empty with List {
method head {
die "Can't take head of empty list!"
}
method tail {
die "Can't take tail of empty list!"
}
}
44. So we can write:
my $list = List::Link->new(
head => 'c',
tail => List::Link->new(
head => 'i',
tail => List::Link->new(...