In article <Pine.GSO.4.30.0202051313480.13501-100000@po.cs.bham.ac.uk>,
Mark Gemmell <ug83mxg@cs.bham.ac.uk> writes:
> I'm doing a third yr AI project at birmingham, and am trying to do
> something very simple with strings, but can't find a simple solution.
>
> Basically all I want to do is convert: '1 2 a basic string <2 3>'
> into: [1 2 a basic string <2 3>]
>
> Sorry to be asking such a simple question, but attempts to find a simple
> way of doing this have failed thus far.
'your string here'.stringin.incharitem.pdtolist.expandlist
assuming that you want < and > as separate tokens.
[
stringin: string -> character repeater
incharitem: character repeater -> item repeater
pdtolist: Spoo repeater -> Spoo dynamic list
expandlist: Spoo [dynamic] list -> Spoo static list
]
--
Chris "no performance requests" Dollin
|