eta.util.sexpr.list_to_s_expr

list_to_s_expr(lst)[source]

Convert an S-expression list structure to a string representing a LISP formatted S-expression.

Parameters:

lst (s-expr) – An S-expression in recursively nested list form, e.g., ['a', ['b', ['c', 'd']], 'e'].

Returns:

A LISP formatted string representation of the S-expression, e.g., (a (b (c d)) e).

Return type:

str