Skip to content

Commit

Permalink
Merge pull request honza#353 from dhilipsiva/master
Browse files Browse the repository at this point in the history
scheme: First snippets
  • Loading branch information
SirVer committed May 5, 2014
2 parents 0f7742f + 519c3be commit eed8762
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions snippets/scheme.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,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}))

0 comments on commit eed8762

Please sign in to comment.