This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require (for-syntax racket/syntax)) | |
(require racket/stxparam) | |
(define-syntax (foo stx) | |
(syntax-case stx () | |
((_ bind-id binding-id body) | |
(let () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define-syntax (make-bind-to-5 stx) | |
(syntax-case stx () | |
((_ id later) | |
#'(define-syntax (later stx) | |
(syntax-case stx () | |
((_ body) | |
(with-syntax ((new-id (syntax-local-introduce #'id))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define ((wrap-keys-hash wrap-key unwrap-key) hash) | |
(impersonate-hash hash | |
(lambda (hash key) | |
(values (wrap-key key) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onload() { | |
newDiv = document.createElement('div'); | |
newDiv.innerHTML = 'Hi there and greetings'; | |
document.body.appendChild(newDiv); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main:Diffusion.applyRule :: %forall eaaDH (aaaDI::(*->(*->*))) (maaDJ::(*->*)) . (deepseqzm1zi2zi0zi1:ControlziDeepSeq.TZCNFData | |
eaaDH) | |
-> | |
(arrayzm0zi3zi0zi3:DataziArrayziBase.TZCMArray | |
aaaDI | |
eaaDH | |
maaDJ) | |
-> | |
(eaaDH -> | |
(main:Point.Neighbors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require (for-syntax syntax/parse)) | |
(begin-for-syntax | |
(define-splicing-syntax-class foo | |
(pattern (~seq)) | |
(pattern (~seq #:foo)))) | |
(define-syntax bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-splicing-syntax-class provide-spec | |
#:attributes ((forms 1) (provide 0)) | |
(pattern (~and (~seq forms ...) (~seq)) | |
#:attr provide #'null-provide) | |
(pattern (~and (~seq forms ...) (~seq #:provide)) | |
#:attr provide #'simple-provide) | |
(pattern (~and (~seq forms ...) (~seq #:provide/contract c)) | |
#:attr provide (contracted-provide contract)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require (for-syntax syntax/parse) racket/stxparam) | |
(define-syntax-parameter llvm-safety 'unsafe) | |
(define-syntax define-llvm-safety-parameter | |
(syntax-parser | |
((_ name:id safe:id unsafe:id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define foo-r (recursive-contract foo?)) | |
(define bar-r (recursive-contract bar?)) | |
(define-struct/contract foo ((v (or/c bar-r #f)))) | |
(define-struct/contract bar ((v (or/c foo-r #f)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import List. | |
Inductive btree : Set := | |
| bleaf : btree | |
| bbranch : btree -> btree -> btree. | |
Fixpoint btree_id(x : btree) : btree := | |
match x with | |
| bleaf => bleaf | |
| bbranch l r => bbranch (btree_id l) (btree_id r) |
OlderNewer