mirror of https://github.com/Wilfred/difftastic/
added Racket support
parent
62a5f20bf6
commit
fe756905bf
@ -0,0 +1,17 @@
|
||||
#lang racket
|
||||
|
||||
(define (append lst1 lst2)
|
||||
(if (null? lst1)
|
||||
lst2
|
||||
(cons (car lst1)
|
||||
(append (cdr lst1) lst2))))
|
||||
|
||||
(append '(a b c) '(d e f))
|
||||
|
||||
"Hello, world!\n"
|
||||
#(0 1 2 3 4)
|
||||
#\space
|
||||
|
||||
#<<E
|
||||
abc
|
||||
E
|
||||
@ -0,0 +1,16 @@
|
||||
#lang racket/base
|
||||
|
||||
(define (append lst1 lst2)
|
||||
(cond [(null? lst1) lst2]
|
||||
[else (cons (car lst1)
|
||||
(append (cdr lst1) lst2))]))
|
||||
|
||||
(append '(a b c) '(d e))
|
||||
|
||||
"Hello, world!"
|
||||
#(1 2 3)
|
||||
#\"
|
||||
|
||||
#<<END
|
||||
abc
|
||||
END
|
||||
@ -0,0 +1 @@
|
||||
tree-sitter-racket/src
|
||||
Loading…
Reference in New Issue