We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995ab73 commit 519c3beCopy full SHA for 519c3be
snippets/scheme.snippets
@@ -0,0 +1,36 @@
1
+snippet +
2
+ (+ ${1}
3
+ ${0})
4
+
5
+snippet -
6
+ (- ${1}
7
8
9
+snippet /
10
+ (/ ${1}
11
12
13
+snippet *
14
+ (* ${1}
15
16
17
+# Definition
18
+snippet def
19
+ (define (${1:name})
20
+ (${0:definition}))
21
22
+# Definition with lambda
23
+snippet defl
24
+ (define ${1:name}
25
+ (lambda (x)(${0:definition})))
26
27
+# Condition
28
+snippet cond
29
+ (cond ((${1:predicate}) (${2:action}))
30
+ ((${3:predicate}) (${0:action})))
31
32
+# If statement
33
+snippet if
34
+ (if (${1:predicate})
35
+ (${2:true-action})
36
+ (${0:false-action}))
0 commit comments