core: reverse!: Handle empty list.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 29 Apr 2018 16:14:01 +0000 (18:14 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 29 Apr 2018 16:14:01 +0000 (18:14 +0200)
commit41fe73946394094242c64567a17f423fa796c238
tree84ffc9ee0657dfdf959951b52c51859d0f4d7146
parentdc24a7f76f4b3df3cadedfcc347e343a17d4f06a
core: reverse!: Handle empty list.

* src/mes.c (reverse_x_): Handle empty list.
* tests/scm.test ("reverse! ()"): Test it.
src/mes.c
tests/scm.test