Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Naming-conventions/Racket/naming-conventions-1.rkt
Normal file
4
Task/Naming-conventions/Racket/naming-conventions-1.rkt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#lang racket
|
||||
render-game-state
|
||||
send-message-to-client
|
||||
traverse-forest
|
||||
7
Task/Naming-conventions/Racket/naming-conventions-2.rkt
Normal file
7
Task/Naming-conventions/Racket/naming-conventions-2.rkt
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#lang racket
|
||||
(string-ref "1234" 2)
|
||||
(string-length "123")
|
||||
(string-append "12" "34")
|
||||
;exceptions:
|
||||
(append (list 1 2) (list 3 4))
|
||||
(unbox (box 7))
|
||||
6
Task/Naming-conventions/Racket/naming-conventions-3.rkt
Normal file
6
Task/Naming-conventions/Racket/naming-conventions-3.rkt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#lang racket
|
||||
(struct pair (x y) #:transparent #:mutable)
|
||||
(define p (pair 1 2))
|
||||
(pair-x p) ; ==> 1
|
||||
(set-pair-y! p 3)
|
||||
p ; ==> (pair 1 3)
|
||||
3
Task/Naming-conventions/Racket/naming-conventions-4.rkt
Normal file
3
Task/Naming-conventions/Racket/naming-conventions-4.rkt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#lang racket
|
||||
(list->vector '(1 2 3 4))
|
||||
(number->string 7)
|
||||
15
Task/Naming-conventions/Racket/naming-conventions-5.rkt
Normal file
15
Task/Naming-conventions/Racket/naming-conventions-5.rkt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
;predicates and boolean-valued functions: ?
|
||||
(boolean? 5)
|
||||
(list? "123")
|
||||
|
||||
;setters and field mutators: !
|
||||
(set! x 5)
|
||||
(vector-set! v 2 "x")
|
||||
|
||||
; classes: %
|
||||
game-state%
|
||||
button-snip%
|
||||
|
||||
;interfaces: <%>;
|
||||
dc<%>;
|
||||
font-name-directory<%>
|
||||
Loading…
Add table
Add a link
Reference in a new issue