remove unreacahble code
All checks were successful
Go / test (push) Successful in 4s

This commit is contained in:
Adam Jeniski 2025-11-04 15:16:50 -10:00
parent 5ac5acd6d1
commit b9b88d8fa0

View File

@ -54,9 +54,6 @@ func (this *EmptyList) Conj(val any) IList {
}
func (this *List) Rest() IList {
if this == nil {
return emptyList
}
return this.next
}
@ -65,9 +62,6 @@ func (this *EmptyList) Rest() IList {
}
func (this *List) First() any {
if this == nil {
return nil
}
return this.Value
}
@ -88,10 +82,6 @@ func (this *EmptyList) IsEmpty() bool {
}
func (this *List) String() string {
if IsEmpty(this) {
return "()"
}
var sb strings.Builder
sb.WriteRune('(')
// Iterate and print elements