Add view kwarg to first and last#2951
Add view kwarg to first and last#2951bkamins merged 7 commits intoJuliaData:mainfrom Chandu-4444:#2845
view kwarg to first and last#2951Conversation
to one line as before
|
It would be good to have an |
My experience is that it will be problematic, but we can check :). |
|
I didn't clearly understand the working of |
|
In our case here the question is if compiler is able to determine that when you do not pass So just check if and both results are expected and optimal. By default compiler knows that the returned value will have |
Yes, that throws an error. |
|
I have pushed changes that should make it |
|
Yes - my fix works. |
bkamins
left a comment
There was a problem hiding this comment.
Looks good (subject to wording of docstrings, which @nalimilan is better at checking than me)
|
Thank you! |
Please look at this, I've added
view(defaults to false) kwarg tofirstandlast. Also added tests to check for checking types of the results that were returned by the above functions. #2845