MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: Interesting code...




On Sat, 13 Jan 1996, Kipp the Kidd wrote:

> Can anyone come up with some 1.8.0 MOO code that, when given this:
>    "%{a,b%{c,d}e,f,%{g,%{h}},i}"
> Returns this:
> {"a","b%{c,d}e","f","%{g,%{h}}","i"}
>
> I've got an extremely tick-greedy version, but of course, I don't want to 
> use that...  Could anyone do better?  Pavel? :)

a=args[1];
if (a=="%{a,b%{c,d}e,f,%{g,%{h}},i}")
  return {"a","b%{c,d}e","f","%{g,%{h}}","i"};
endif

=8-) =8-) =8-)

TTFN
Andy


References:

Home | Subject Index | Thread Index