3 Mutable List Functions
This compatibility/mlist library provides support for
Support is provided primarily to help porting Lisp/Scheme code to Racket.
Use of mutable lists for modern Racket code is strongly
Instead, consider using lists.
For functions described in this section, contracts are not directly
enforced. In particular, when a mutable list
is expected, supplying any other kind of value (or mutating a value that
starts as a mutable list)
tends to produce an exception from mcar or mcdr.
Returns a newly allocated
containing the v
s as its
Returns a newly allocated mutable list
with the same
elements as lst
Returns a newly allocated list with the same elements as
Returns the number of elements in mlst.
procedure appends the given
the tail of each to refer to the next, using set-mcdr!
lists are dropped; in particular, the result of calling
with one or more empty lists is the same as the
result of the call with the empty lists removed from the set of
Returns a procedure that returns #t
when given a
for which pred
returns a true
value for all elements.