And we're going to say explosion equals X load and then within explode you say hmm a it's like kinda like flipped with the tokenized so you're first gonna say which one explode by then you want it's they want to specify what you want to explode in this case for industry just like the tokenized a.m. it it that's not that characters in here this can return a false So eventually you want to say if not equals false or some sort of if statement that will catch if you're trying to explode by something that doesn't exist.
But otherwise what we'll do now is what this does that the tokenize isn't doing directly is this is going to throw it right on into an array.
So what we can do to view that array is use our printr function and we want to printr explosion.
so now let's just go ahead and print that and we'll refresh as you can see it prints out the array the zeroth element is hey there buddy and so why might you use this over tokenize it really it doesn't matter because the reason you might use an array is it's really easy to loop through an array But with what we just showed you before with the tokenize, you're looping through it.
In that case, we were just looping through and we were already utilizing the looping through part of using an array.
It really doesn't matter which one you use, but it's good to know what someone means.
You can definitely explode something, and it's good to know because that's usually the terminology someone's going to use.
Like, okay, we wanted to explode that document and split by something, right? It's good to know what they were meaning by the term explode.
And we're going to say explosion equals X load and then within explode you say hmm a it's like kinda like flipped with the tokenized so you're first gonna say which one explode by then you want it's they want to specify what you want to explode in this case for industry just like the tokenized a.m. it it that's not that characters in here this can return a false So eventually you want to say if not equals false or some sort of if statement that will catch if you're trying to explode by something that doesn't exist.
But otherwise what we'll do now is what this does that the tokenize isn't doing directly is this is going to throw it right on into an array.
So what we can do to view that array is use our printr function and we want to printr explosion.
so now let's just go ahead and print that and we'll refresh as you can see it prints out the array the zeroth element is hey there buddy and so why might you use this over tokenize it really it doesn't matter because the reason you might use an array is it's really easy to loop through an array But with what we just showed you before with the tokenize, you're looping through it.
In that case, we were just looping through and we were already utilizing the looping through part of using an array.
It really doesn't matter which one you use, but it's good to know what someone means.
You can definitely explode something, and it's good to know because that's usually the terminology someone's going to use.
Like, okay, we wanted to explode that document and split by something, right? It's good to know what they were meaning by the term explode.
The rest of this transcript — segmented and speaker-labeled, so you land on the exact moment something was said
Search every transcript — by keyword, by phrase, or by meaning, across every show Radar indexes
Trends — what is surging across podcasts, measured against its own baseline
Alerts — when a name you follow appears in a newly indexed episode
No account is needed to search Radar.