Element insertion
Extending class Cell
from Singly-linked_list/Element_definition#Raku:
method insert ($value) {
$.next = Cell.new(:$value, :$.next)
}
Last updated
Was this helpful?
Extending class Cell
from Singly-linked_list/Element_definition#Raku:
method insert ($value) {
$.next = Cell.new(:$value, :$.next)
}
Last updated
Was this helpful?