racket 变量操作示例代码
代码语言:racket
所属分类:其他
代码描述:racket 变量操作示例代码
代码标签: 示例
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
#lang racket (define some-var 5) some-var ; => 5 ;; You can also use unicode characters (define ⊆ subset?) (⊆ (set 3 2) (set 1 2 3)) ; => #t ;; Accessing a previously unassigned variable is an exception ; x ; => x: undefined ... ;; Local binding: `me' is bound to "Bob" only within the (let ...) (let ([me "Bob"]) "Alice" me) ; => "Bob" ;; let* is like let, but allows you to use.........完整代码请登录后点击上方下载按钮下载查看
网友评论0