Spec word -1 And home work for next week is the substr in spec On Apr 30, 2015 9:16 PM, "Gentry, Steve" < [email protected]> wrote:
> In some recent discussions on this list we had discussed the SPEC stage. > And, I thought, in one of the discussions a solution was presented on how > to get the last word in a string of words. > In the example below I'd like to get the word fox. > pipe literal the quick fox | spec lastword | cons > Of course this doesn't work and I've tried a few other combinations and > have done some googleing. > I could do it this way: pipe literal the quick fox | split | take last | > cons > But would prefer a specs method. > So, could someone refresh my memory or is this feature/function wishful > thinking? > Thanks, > Steve >
