How can I avoid the nil printed in the end?

后端 未结 2 1166
逝去的感伤
逝去的感伤 2021-01-22 13:31

I have coded this function that prints-out the state of the board, but in the end, due to the fact that there isnt no return the function prints an nil!

Function:

<
2条回答
  •  执念已碎
    2021-01-22 13:58

    adding (values) as return form for dotimes will do it:

    (dotimes (number 8 (values))
       .....)
    

    after all, show-board indeed doesn't return any values, right?

提交回复
热议问题