Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

typos

  • Loading branch information...
commit 507a2091fdef61c56c8aa081df9c8ba91c0f076b 1 parent d300817
@paulosuzart authored
View
4 source/_posts/2012-04-11-sorting-with-clojure-comparator.markdown
@@ -8,7 +8,7 @@ categories: clojure elementary
This is a quick post to show an example of [clojure](http://clojure.org) `comparator` for sorting a list with `sort`.
-At work a friend wrote dozen lines of java to sort a list of characters that represents t-shirt sizes. The sizes are: pp, p, m, mm, g, gg, a, aa. Whre pp is super small, p small, m medium, etc.
+At work a friend wrote dozen lines of java to sort a list of characters that represents t-shirt sizes. The sizes are: pp, p, m, mm, g, gg, a, aa. Where 'pp' is super small, 'p' small, 'm' medium, etc.
Some shees have all the sizes available, some not. So imagine a shirt with just g, a, gg, p sizes availabe. The screen should show: p, g, gg, a.
@@ -24,7 +24,7 @@ To finish that, the [`sort`](http://clojuredocs.org/clojure_core/clojure.core/so
It is even silly for a blog post but what if I can convince him to replace the java methods/utils/whatever methods for a [`gen-class`](http://clojuredocs.org/clojure_core/clojure.core/gen-class) of it? Packing compiled clojure code and using them for utility functions and small piece of your application can be a good way to get used to the language and confidence to start a full application in it.
-Actually to let this code resuable, one can take the list of sizes instead of hard coding it. But this is an exercise for you.
+Actually to let this code reusable, one can take the list of sizes instead of hard coding it. But this is an exercise for you.
{% signature paulosuzart %}
Please sign in to comment.
Something went wrong with that request. Please try again.