racketf's repositories
list.bubble-sort
Bubble sorts a list in ascending order.
racketf.github.io
A set of assignments in the Racket programming language.
list.increment-first
Increments only the first value of list.
list.merge
Merge loi1 and loi2 in ascending order (see EOPL).
list.reduce
Reduces list of values to a single value.
list.remove-first-value
Get a new list with elements in the same order, except the the first occurrence of symbol s (see EOPL).
list.repeat-value
Returns a list containing n copies of x (see EOPL).
list.reverse
Reverses the order of elements in a list.
list.reverse-pairs
Returns a list with each 2-list reversed (see EOPL).
list.sort-by
Returns a list of elements sorted by predicate.
slist.count-value
Returns occurrences of s in slist (see EOPL)
slist.down
Wraps parentheses around each top-level element of lst (see EOPL).
slist.flatten
Returns list of symbols in slist in the same order (see EOPL).
slist.replace
Substitute symbol in a symbol list (see EOPL).
slist.replace-inline
Elimiate one call to subst-sexp in subst by replacing its definition (see EOPL).
lambda.occurs-free
Is a variable free in a lambda expression (see EOPL)?
list.append
Appends a value to end of list.
list.cartesian-product
Returns cartesian product of sos1 with sos2 (see EOPL).
list.every
Returns #f if any element of lst fails to satisfy pred, #t otherwise (see EOPL).
list.find-index
Returns 0-based position of first element in lst that satisfies predicate pred (see EOPL).
list.number-elements
Mark each element of list as a pair of its index and value (see EOPL).
list.remove-value
Like remove-first, except that it removes all occurrences of given symbol (see EOPL).
slist.replace-map
Writing subst following original kleene star grammar using map (see EOPL).
slist.replacex
Returns s-list with all occurrences of s1 replaced with s2 (see EOPL).