[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: Looping over array.

William James

2/12/2016 9:59:00 PM

> CL-USER 5 > (loop for c across "Hello World!"
> when (char= #\l c) count 1)
> 3

MatzLisp (Ruby):

"Hello World!".count "l"
==>3

--
[W]e are engaged in close combat between Israel and the Nations, and it can
only be genocidal and total, because it is a question of our respective
identities. --- Dr. Yitzhak Attia, Israel Magazine, April 2003