0 Replies - 1172 Views - Last Post: 29 March 2010 - 08:18 PM

#1 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 614
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

[Lisp] [Clojure] Count the number of vowels in a string

Posted 29 March 2010 - 08:18 PM

Description: This function counts the number of vowels in a string.
(defn count-vowels [s] (count (filter #{a e i o u} s))) 

Is This A Good Question/Topic? 0
  • +

Page 1 of 1