Racket - How to count the number of elements in a list? -


i wondering how count number of elements example, counting number of elements in (list 'a 'b 'c' 'd). thank you!

based on racket documentation :

http://docs.racket-lang.org/reference/pairs.html#%28def.%28%28quote.~23~25kernel%29._length%29%29

(length lst) returns number of elements in lst.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -