asCons

open fun asCons(): Cons?

Casts the current Term to Cons, if possible, or returns null otherwise

Return

the current Term, casted to Cons, or null, if the current term is not an instance of Cons