Permalink
Browse files

* c: more snippets

  • Loading branch information...
1 parent 01f5481 commit a6326cc7e093d146044f13d43ddedfd41fa90f5c @swannodette committed Dec 25, 2011
Showing with 35 additions and 5 deletions.
  1. 0 comment → c
  2. +0 −5 cond
  3. +5 −0 defm
  4. +3 −0 defmm
  5. +4 −0 defp
  6. +5 −0 defr
  7. +5 −0 deft
  8. +3 −0 kwargs
  9. +3 −0 let
  10. +4 −0 m
  11. +3 −0 pm
View
0 comment → c
File renamed without changes.
View
5 cond
@@ -1,5 +0,0 @@
-#name: cond
-# --
-(cond
- $0
- ${1:else} ${2:else-clause})
View
5 defm
@@ -0,0 +1,5 @@
+#name: defmethod
+# --
+(defmethod ${1:name} ${2:match}
+ [${3:args)]
+ $0)
View
3 defmm
@@ -0,0 +1,3 @@
+#name: defmulti
+# --
+(defmulti ${1:name} ${2:dispatch-fn})
View
4 defp
@@ -0,0 +1,4 @@
+#name: defprotocol
+# --
+(defprotocol ${1:Name}
+ $0)
View
5 defr
@@ -0,0 +1,5 @@
+#name: defrecord
+# --
+(defrecord ${1:Name} [${2:fields}]
+ ${3:Protocol}
+ $0)
View
5 deft
@@ -0,0 +1,5 @@
+#name: deftype
+# --
+(deftype ${1:Name} [${2:fields}]
+ ${3:Protocol}
+ $0)
View
3 kwargs
@@ -0,0 +1,3 @@
+#name: keyword args
+# --
+& {:keys [${1:keys}] :or {${2:defaults}}}
View
3 let
@@ -0,0 +1,3 @@
+#name: let
+# --
+(let [$0])
View
4 m
@@ -0,0 +1,4 @@
+#name: method
+# --
+(${1:name} [${2:this} ${3:args}]
+ $0)
View
3 pm
@@ -0,0 +1,3 @@
+#name: protocol method
+# --
+(${1:name} [${2:this} ${3:args}])

0 comments on commit a6326cc

Please sign in to comment.