Make endIndex
in getRange
an optional positional argument, default to width
#228
Labels
endIndex
in getRange
an optional positional argument, default to width
#228
Motivation
It's relatively common to want to grab a bus or value from a certain bit all the way to the end, but right now that requires explicitly specifying the width as the
end
argument ofgetRange
. It would be nice if supplying only thestart
would default to grabbing all the way to the end.Desired solution
Modify
getRange
in bothLogic
andLogicValue
so thatendIndex
is an optional positional argument:If
endIndex
is null, then default the value of it towidth
.Alternatives considered
No response
Additional details
No response
The text was updated successfully, but these errors were encountered: