Exercises
Try to solve the following exercises:
- Create a
PrintMe()method instructures.gothat prints all the elements of the linked list. - Go 1.21 comes with a new function named
clearthat clears maps and slices. For maps, it deletes all entries whereas for slices it zeros all existing values. Experiment with it to learn how it works. - Implement the
delete()andsearch()functionality using generics for the linked list found instructures.go. - Implement a doubly-linked list using generics starting with the code found in
structures.go.