aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/scheme.snippets
blob: 035d53483a71ec0cdfdae0830dd38c7efe35205f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
snippet +
	(+	${1}
		${0})

snippet -
	(-	${1}
		${0})

snippet /
	(/	${1}
		${0})

snippet *
	(*	${1}
		${0})

# Definition
snippet def
	(define (${1:name})
			(${0:definition}))

# Definition with lambda
snippet defl
	(define ${1:name}
			(lambda (x)(${0:definition})))

# Condition
snippet cond
	(cond	((${1:predicate}) (${2:action}))
			((${3:predicate}) (${0:action})))

# If statement
snippet if
	(if (${1:predicate})
		(${2:true-action})
		(${0:false-action}))