You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the interpolation section, you talk about * and $ constructs, and mention that $ is faster than *, but you don't mention that string(...) is fastest of all.
The text was updated successfully, but these errors were encountered:
Where a search string is not found, search() will yield 0:-1. That is an odd result, until you realise the reason: for any string s, s[0:-1] will necessarily yield "" (that is, an empty string).
Why is this the case? [1:-1] does the same thing, but [0:0] returns a BoundsError.
s[0,0] means 'give me all characters from the 0th to the 0th. Julia is 1-indexed, so you're asking for a non-existent index, and that's what Julia is trying to get at by the BoundsError.
In the interpolation section, you talk about
*
and$
constructs, and mention that$
is faster than*
, but you don't mention thatstring(...)
is fastest of all.The text was updated successfully, but these errors were encountered: