removing extra function

This commit is contained in:
lee 2021-06-11 11:40:52 +01:00
parent b4fcec8912
commit 02a091c6f8
1 changed files with 2 additions and 12 deletions

View File

@ -35,17 +35,7 @@ func IsPositive_node(node *NodeL) bool {
return false
}
func IsNegative_node(node *NodeL) bool {
switch node.Data.(type) {
case int, float32, float64, byte:
return node.Data.(int) < 0
case string, rune:
return false
}
return false
}
func IsNotNumeric_node(node *NodeL) bool {
func IsAl_node(node *NodeL) bool {
switch node.Data.(type) {
case int, float32, float64, byte:
return false
@ -105,7 +95,7 @@ func main() {
fmt.Println("--------function applied--------")
piscine.ListForEachIf(link, PrintElem, piscine.IsPositive_node)
piscine.ListForEachIf(link, StringToInt, piscine.IsNotNumeric_node)
piscine.ListForEachIf(link, StringToInt, piscine.IsAl_node)
fmt.Println("--------function applied--------")
PrintList(link)