mirror of https://github.com/01-edu/public.git
Add link to the explanation of `zero values` in go`
This commit is contained in:
parent
39e8eb3ccf
commit
7d693b518b
|
@ -2,10 +2,10 @@
|
|||
|
||||
### Instructions
|
||||
|
||||
Write a function `Compact` that takes a pointer to a slice of `string` as the argument.
|
||||
Write a function `Compact` that takes a pointer to a slice of `string`s as the argument.
|
||||
This function must:
|
||||
|
||||
- Return the number of elements with non-zero value.
|
||||
- Return the number of elements with [non-zero value](https://tour.golang.org/basics/12).
|
||||
|
||||
- Compact, i.e., delete the elements with zero-values in the slice.
|
||||
|
||||
|
|
Loading…
Reference in New Issue