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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -