On this page:
singleton?
append-reverse
8.16.0.4

9 Lists🔗ℹ

 (require scramble/list) package: scramble-lib

procedure

(singleton? v)  boolean?

  v : any/c
Returns #t if v is a list of length 1; #f otherwise.

Equivalent to (and (pair? v) (null? (cdr v))).

Examples:
> (singleton? (list 'hello))

#t

> (singleton? (list 1 2 3))

#f

> (singleton? (shared ([whys (cons 'why whys)]) whys))

#f

procedure

(append-reverse xs ys)  list?

  xs : list?
  ys : list?
Equivalent to (append (reverse xs) ys).

Example:
> (append-reverse '(1 2 3) '(a b c))

'(3 2 1 a b c)

Added in version 0.4 of package scramble-lib.