When using array-slice-ref from math/array I get different results when 
executing it #lang typed/racket or #lang racket (see below). The typed/racket 
result is consistent with the documentation, the untyped one seems to be wrong.

Berthold



#lang typed/racket
(require math/array)

(define arr
    (array
 #[#[#["000" "001" "002" "003"]
     #["010" "011" "012" "013"]
     #["020" "021" "022" "023"]]
   #[#["100" "101" "102" "103"]
     #["110" "111" "112" "113"]
     #["120" "121" "122" "123"]]]))

(array-slice-ref arr (list 0 ::…))


computes to:
(array #[#["000" "001" "002" "003"] #["010" "011" "012" "013"] #["020" "021" 
"022" "023"]])


wheras:

#lang racket
(require math/array)

(define arr
    (array
 #[#[#["000" "001" "002" "003"]
     #["010" "011" "012" "013"]
     #["020" "021" "022" "023"]]
   #[#["100" "101" "102" "103"]
     #["110" "111" "112" "113"]
     #["120" "121" "122" "123"]]]))

(array-slice-ref arr (list 0 ::…))

computes to:
(array #[])

-- 
-----------------------------------------------------------------------
Berthold Bäuml -- Head of Autonomous Learning Robots Lab
DLR, Robotics and Mechatronics Center (RMC)
Münchner Str. 20, D-82234 Wessling
Phone +49 8153 282489
http://www.robotic.de/Berthold.Baeuml
 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to