Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created February 25, 2012 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edipofederle/1908802 to your computer and use it in GitHub Desktop.
Save edipofederle/1908802 to your computer and use it in GitHub Desktop.
(ns exploring
(:require [clojure.contrib.string :as str]))
(defn a-function [word]
"Capitaliza todas palavras maiores que 2 chars"
(if (>(count word ) 2) (str/capitalize word)))
(use '[clojure.contrib.str-utils :only (re-split)])
(filter a-function (re-split #"\W+" "A fine day it is"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment