egallesio / STklos

STklos Scheme
http://stklos.net
GNU General Public License v2.0
69 stars 17 forks source link

Add `improper-list?` #628

Closed jpellegrini closed 5 months ago

jpellegrini commented 5 months ago

Not sure if this reeeealy is interesting, but here it is: it can be useful to make code clearer -- instead of

(and (pair? x) (not (list? x)))

we can write

(improper-list? x)
egallesio commented 5 months ago

Hi @jpellegrini, As you said, not really useful. But why not? :smile: Merged.