Empty check our stack has value or not
()
| 54 | |
| 55 | // Empty check our stack has value or not |
| 56 | func (sl *SList) IsEmpty() bool { |
| 57 | // check our stack is empty or not |
| 58 | // if is 0 it means our stack is empty otherwise is not empty |
| 59 | return sl.Stack.Len() == 0 |
| 60 | } |