Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /tests/trunk/bugs/tests.obsolete/bug1463.1.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug1463.1.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (download) (annotate)
Sat Apr 28 20:18:10 2007 UTC (12 years, 1 month ago) by gkuan
File size: 434 byte(s)
(* bug1463.1.sml *)

val x = Array2.tabulate Array2.RowMajor (2,3,fn (r,c) => 10 * r + c);

Array2.row(x,0);  (* --> val it = #[0,1] : int vector (* Nope! *) *)
Array2.row(x,1);  (* --> val it = #[10,11] : int vector (* ditto *) *)

(* these are okay *)
Array2.column(x,0); (* --> val it = #[0,10] : int vector *)
Array2.column(x,1); (* --> val it = #[1,11] : int vector *)
Array2.column(x,2); (* --> val it = #[2,12] : int vector *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0