Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Unicode-strings/Racket/unicode-strings.rkt
Normal file
17
Task/Unicode-strings/Racket/unicode-strings.rkt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#lang racket
|
||||
|
||||
;; Unicode in strings, using ascii
|
||||
"\u03bb" ; -> "λ"
|
||||
;; and since Racket source code is read in UTF-8, Unicode can be used
|
||||
;; directly
|
||||
"λ" ; -> same
|
||||
|
||||
;; The same holds for character constants
|
||||
#\u3bb ; -> #\λ
|
||||
#\λ ; -> same
|
||||
|
||||
;; And of course Unicode can be used in identifiers,
|
||||
(define √ sqrt)
|
||||
(√ 256) ; -> 16
|
||||
;; and in fact the standard language makes use of some of these
|
||||
(λ(x) x) ; -> an identity function
|
||||
Loading…
Add table
Add a link
Reference in a new issue