Update array.rkt

main
Matthew Butterick 7 years ago committed by GitHub
parent a77737e1e6
commit 01ca66a40e

@ -54,9 +54,8 @@ https://github.com/mbutterick/restructure/blob/master/src/Array.coffee
(raise-argument-error 'Array:encode "list or countable" array)))
(define (encode-items ctx)
(define results (for/list ([item (in-list (countable->list array))])
(for ([item (in-list (countable->list array))])
(send type encode port item ctx)))
(unless port (apply bytes-append results)))
(cond
[(NumberT? len) (define ctx (mhash 'pointers null

Loading…
Cancel
Save