This file contains 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
Timing multiple value return techniques | |
running automated test. | |
noMultipleValues time 433 | |
noMultipleValues time 426 | |
noMultipleValues time 412 | |
noMultipleValues time 412 | |
noMultipleValues time 417 | |
noMultipleValues time 416 |
This file contains 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
Timing multiple value return techniques | |
running automated test. | |
noMultipleValues time 431 | |
noMultipleValues time 419 | |
noMultipleValues time 427 | |
noMultipleValues time 429 | |
noMultipleValues time 421 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/system/bin/sh | |
stat() { | |
local lsout="$(ls -ld "$1" 2>/dev/null)" | |
case "$lsout" in | |
"") nex=1; fil= ; dir= ;; | |
d*) nex= ; fil= ; dir=1 ;; | |
*) nex= ; fil=1; dir= ;; | |
esac | |
} |
This file contains 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-syntax (type-case stx) | |
(define (add-huh s) | |
(datum->syntax stx (string->symbol (string-append (symbol->string (syntax-e s)) "?")))) | |
(syntax-case stx () | |
[(_ val | |
[(ty field ...) body] | |
...) | |
(with-syntax ([(p ...) (map add-huh (syntax-e #'(ty ...)))]) | |
#'(let ([v val]) | |
(cond |
NewerOlder