read me listremoveif.md

This commit is contained in:
Lee 2019-04-18 16:27:12 +01:00
parent d6e4de3099
commit 8f9d25cbb0
1 changed files with 0 additions and 8 deletions

View File

@ -4,8 +4,6 @@
Write a function `ListRemoveIf` that removes all elements that are equal to the `data_ref` introduced in the argument of the function.
- In case the list is empty print the message `no data on list`.
- Use pointers wen ever you can.
@ -55,9 +53,6 @@ func main() {
link2 := &List{}
link3 := &List{}
fmt.Println("------answer-----")
ListRemoveIf(link3, 1)
fmt.Println()
fmt.Println("----normal state----")
student.ListPushBack(link2, 1)
@ -93,9 +88,6 @@ And its output :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
------answer-----
no data on list
----normal state----
1 -> <nil>
------answer-----