Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Clojure

 Clojure

Apresentando Clojure hoje no encontro do GuruPI

Samuel Flores

November 29, 2014
Tweet

More Decks by Samuel Flores

Other Decks in Programming

Transcript

  1. (doc +) clojure.core/+ ([] [x] [x y] [x y &

    more]) Returns the sum of nums. (+) returns 0. Does not auto-promote longs, will throw on overflow. See also: +'
  2. def fn #() if do let quote ‘() var #’()

    loop recur throw try formas especiais
  3. alias and BEGIN begin break case class def defined? do

    else elsif END end ensure for if in module next not or redo rescue retry return self super then undef unless until when while yield Ruby
  4. assert break class const continue default do double else enum

    extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while Java
  5. (def l '(1 2 3)) (def v [1 2 3])

    (def m {:a 1 :b 2}) (def s #{:x :y :z}) data types