Extending class Cell from Singly-linked_list/Element_definition#Raku:
class Cell
method insert ($value) { $.next = Cell.new(:$value, :$.next) }
Last updated 11 months ago