|
|
@ -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. |
|
|
|
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 present a new line `\n`. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Expected function and structure |
|
|
|
### Expected function and structure |
|
|
|
|
|
|
|
|
|
|
|
```go |
|
|
|
```go |
|
|
@ -87,7 +85,6 @@ student@ubuntu:~/piscine/test$ go build |
|
|
|
student@ubuntu:~/piscine/test$ ./test |
|
|
|
student@ubuntu:~/piscine/test$ ./test |
|
|
|
------answer----- |
|
|
|
------answer----- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
----normal state---- |
|
|
|
----normal state---- |
|
|
|
1 -> <nil> |
|
|
|
1 -> <nil> |
|
|
|
------answer----- |
|
|
|
------answer----- |
|
|
|