matlab: fix do/slice, strings. Self-hosting!
[jackhill/mal.git] / matlab / +types / List.m
index 3fc1429..1a9571c 100644 (file)
@@ -30,7 +30,7 @@ classdef List < handle
             if nargin < 3
                 last = length(obj.data);
             end
-            ret = types.List(obj.data{start:end});
+            ret = types.List(obj.data{start:last});
         end
 
         function ret = clone(obj)