Re: A function that expands value() and more

new topic     » goto parent     » topic index » view thread      » older message » newer message
jpartridge said...
petelomax said...
euphoric said...
Senator said...

Just an observation.

So, the function should output a sequence of found values. In the case above, it would return {42,18,36}.

You can do this in Phix:

string s = "This string includes the numbers 42 18 36." 
sequence res = scanf(" "&s,"%s %d%s") 
pp(res,{pp_StrFmt,-2}) 
?vslice(res,2) 

Output:

Your code sure seems nice, euphoric.

Not my code! grin

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu