I'm just wondering what my options are re doing this....
(de mmbr (Trgt L)
(for Ele L
(if (== Ele Trgt) (println "found so exit with true")
(println "try next")
)
)
(prinl "list exhausted so return false")
)
(mmbr 'B '(A B C))
I only know how to iterate over lists using for but don't know how to exit
for.
until might be more suitable suitable but I don't know how to look at each
member using it.
I also saw find...but wasn't sure exactly how I'd apply that.
Any help much appreciated.
BTW which is the most efficient loop in Picolisp from an execution
perspective?