### ----------------------------------------------------
### -- GPGME
### -- Licenses: Artistic-2.0
### -- Authors: Curt Tilmes <curt@tilmes.org>
### -- File: lib/GPGME/LinkedList.rakumod
### ----------------------------------------------------
role GPGME::LinkedList does Iterable
{
    method list(--> Seq)
    {
        gather
        {
            loop (my $i = self; $i; $i = $i.next)
            {
                take $i;
            }
        }
    }
}


