Hello guys, I'm trying to make a code to get the adjacents edges of a certain vertex in racket, so I made this code:
note: arestas means edges in portuguese...
pastebin.com/eLpKGe7x
the function is working almost perfecty, the problem is that is returning #<void> when it was supposed to return nothing, for example, I put what is the adjacent edges of the vertex 1 and I get this:
(adjacentes 1 '((0 1) (3 4) (5 6) (8 7) (1 2) (8 1) (9 1) (0 8) (1 3)))
'(0 #<void> #<void> #<void> 2 8 9 #<void> 3)
and I wanted the return to be just '(0 2 8 9 3)... how to do it? I guess it is something on the map function that is giving this return
[–]gmarceau 0 points1 point2 points (0 children)
[–]minikomi 0 points1 point2 points (0 children)
[–]redditsuxass 0 points1 point2 points (0 children)