I created my own string splitting function by using a recursive function. It is possible to do and should be a nice programming task :)

If you have any more specific questions feel free to ask.

--
Steve



Ravi Dangeti wrote:
Hi,
I get a string like "((fred) and (barney)) or (fred)". I need to split this into individual words "fred","and","barney","or","fred2 . I was not able to make out how to go about in links. Any functions to do such string splitting?

thanks and regards
Ravi



On Fri, 27 Jun 2008, Steve Strugnell wrote:

Links has a few functions that operate on lists which you might find
useful in implementing your own function that returns a boolean value for
whether a particular element exists. I would suggest looking at the
search() and isJust() functions on this page:

http://groups.inf.ed.ac.uk/links/quick-help.html

Regards,

--
Steve


Ravi Dangeti wrote:
      Hi,

      I am trying to implement the duplicate removal for a list.
      I want to check if the head of list is contained in the tail
      of the list.
      So i need a function which returns a boolean value suggesting
      whether tail contains the head or not. Is there any function
      to see if the given element is contained in a list?

      Thanks and Regards
      Ravi




      On Thu, 26 Jun 2008, Ezra Cooper wrote:

            Ravi Dangeti wrote:
                  Are there any functions to remove
                  duplicates from a list and identify
                  common and different elements between
                  two lists?


            Nope, I don't think we have those. Looks like
            another fun programming task for you!

            Ezra







_______________________________________________
links-users mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/links-users

Reply via email to