Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* c: more snippets

  • Loading branch information...
commit a6326cc7e093d146044f13d43ddedfd41fa90f5c 1 parent 01f5481
David Nolen authored
0  comment → c
View
File renamed without changes
5 cond
View
@@ -1,5 +0,0 @@
-#name: cond
-# --
-(cond
- $0
- ${1:else} ${2:else-clause})
5 defm
View
@@ -0,0 +1,5 @@
+#name: defmethod
+# --
+(defmethod ${1:name} ${2:match}
+ [${3:args)]
+ $0)
3  defmm
View
@@ -0,0 +1,3 @@
+#name: defmulti
+# --
+(defmulti ${1:name} ${2:dispatch-fn})
4 defp
View
@@ -0,0 +1,4 @@
+#name: defprotocol
+# --
+(defprotocol ${1:Name}
+ $0)
5 defr
View
@@ -0,0 +1,5 @@
+#name: defrecord
+# --
+(defrecord ${1:Name} [${2:fields}]
+ ${3:Protocol}
+ $0)
5 deft
View
@@ -0,0 +1,5 @@
+#name: deftype
+# --
+(deftype ${1:Name} [${2:fields}]
+ ${3:Protocol}
+ $0)
3  kwargs
View
@@ -0,0 +1,3 @@
+#name: keyword args
+# --
+& {:keys [${1:keys}] :or {${2:defaults}}}
3  let
View
@@ -0,0 +1,3 @@
+#name: let
+# --
+(let [$0])
4 m
View
@@ -0,0 +1,4 @@
+#name: method
+# --
+(${1:name} [${2:this} ${3:args}]
+ $0)
3  pm
View
@@ -0,0 +1,3 @@
+#name: protocol method
+# --
+(${1:name} [${2:this} ${3:args}])
Please sign in to comment.
Something went wrong with that request. Please try again.