Add 'scheme' snippets

master
Hektor Misplon 2021-04-11 19:14:30 +02:00
parent 7d85a170a1
commit d7839912be
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
snippet reqtrace "(#%require racket/trace)" b
(#%require racket/trace)
endsnippet
snippet strln "(string-length <string>)" b
(string-length $0)
endsnippet
snippet impb "Import rnrs base libraries" b
(import (rnrs base (6))
(rnrs io simple)$0)
endsnippet
snippet def "(define <name> <variable>)" b
(define $0 $1)
endsnippet
snippet defp "(define (<procedure-name> <arguments>))" b
(define ($0 $1))
endsnippet