| Page | Functions | Purpose |
|---|---|---|
| Adding Your Contribution | +, -, *, / | Standard arithmetic |
| Writing a Function | defn | Defining a function |
| Decisions, Decisions! | if | branching |
| < | test for less-than | |
| and, or | logical operands | |
| Maximum Success! | > | like <, but the other way around. |
| deftest | Name and define a test case for one or more functions | |
| is | Assert that the contained condition is true. You'll be notified if it isn't. | |
| More Arguments | println | Print all arguments in human-readable form, then a newline. |
| first | return the first element of a list, or nil if it's empty. | |
| second | return the second element of a list, or nil if there isn't one. |
About This
If all goes well, this will become a little online Clojure tutorial for the Facebook Clojure Community.
If it doesn't go well, blame me - my name is Carl Smotricz and I'm the only (so far) author.
I'm no Clojure guru. I'm an enthusiast looking to share my enthusiasm with others. Comments, suggestions, criticism, contributions are welcome.
A. Function Glossary
This page lists the Clojure functions introduced in this tutorial series, in order of introduction.
Subscribe to:
Comments (Atom)
No comments:
Post a Comment