Dynamic.List

find

dynamic

Dynamic

                        (find l pred)
                    

finds the first element in the list l that matches pred.

Returns nil on failure

find-index

dynamic

Dynamic

                        (find-index l pred)
                    

like `find, but returns the index instead.

Returns nil on failure

in?

dynamic

Dynamic

                        (in? elem l)
                    

nth

dynamic

Dynamic

                        (nth l n)
                    

gets the nth element of the list l.

pairs

dynamic

Dynamic

                        (pairs l)
                    

makes a list of pairs out of a list l. If the number of elements is uneven, the trailing element will be discarded.

remove-nth

dynamic

Dynamic

                        (remove-nth l n)
                    

removes the nth element from the list l.

set-nth

dynamic

Dynamic

                        (set-nth l n elem)
                    

sets the nth element of the list l to the value v.

update-nth

dynamic

Dynamic

                        (update-nth l n f)
                    

updates the nth element of the list l using the function f.