Ticket #140 (closed task: fixed)

Opened 2 months ago

Last modified 2 months ago

indexing range error

Reported by: mspiegel Assigned to: jmaessen
Priority: major Milestone:
Component: library Version:
Keywords: Cc:

Description

Found a bug.

run(args:String...) = do
   a = <| 3, 7, 11, 13 |>

   (* this works *)
   println (a[0#4] || <| 17 |> || a[4:(|a| - 1)])

   (* but this throws an error *)
   println (a[0#4] || <| 17 |> || a[4:])

end

Change History

07/01/08 16:48:20 changed by jmaessen

  • status changed from new to closed.
  • resolution set to fixed.

Fixed. We now allow partial ranges to fall just outside the actual bounds, yielding an empty result; this makes life vastly easier for slicing pieces off the ends of an indexed thing.