Hi
I am using the functionprintBoard board (DrRacket Pretty Big)
(printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0)))
and the result is
(0 0 2 0)
(0 0 0 0)
(0 0 8 0)
(0 0 0 0)
""
How do I delete the "" ?
I would like the output to be
(0 0 2 0)
(0 0 0 0)
(0 0 8 0)
(0 0 0 0)
Th
Hi there!
You can suppress à function’s output with (void (func ...)) like so:
(void (printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0
Or you can modify your original function and replace the “” by (void) like so:
...
(cond ((empty? board) (void) )
...
Dexter
> On Apr 23, 2019, at
Thanks
On Tuesday, April 23, 2019 at 9:59:35 PM UTC+3, Dexter Lagan wrote:
>
> Hi there!
>
> You can suppress à function’s output with (void (func ...)) like so:
>
> (void (printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0
>
> Or you can modify your original function and replace the “” by
"orenpa11" , 23.04.2019, 20:53:
> Hi
> I am using the functionprintBoard board (DrRacket Pretty Big)
>
> (printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0)))
> and the result is
>
> (0 0 2 0)
> (0 0 0 0)
> (0 0 8 0)
> (0 0 0 0)
> ""
No, it is not. The *print output* is
(0 0 2 0)
(
Thanks
On Tuesday, April 23, 2019 at 10:12:00 PM UTC+3, Stefan Schmiedl wrote:
>
>
> "orenpa11" >, 23.04.2019, 20:53:
>
> > Hi
> > I am using the functionprintBoard board (DrRacket Pretty Big)
> >
> > (printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0)))
> > and the result is
> >
5 matches
Mail list logo