Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single occurrence in a string
Message
From
30/03/2015 14:04:18
 
 
To
30/03/2015 13:11:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01617326
Message ID:
01617454
Views:
58
Almost afraid ask what a solution in Lisp, APL or Forth would look like...

Lisp:
(remove-duplicates "heyyyy cooooool aaaaaa"
                   :test #'(lambda (x y)
                             (unless (eql x #\space)
                               (char-equal x y)))
                   :from-end t)
Previous
Reply
Map
View

Click here to load this message in the networking platform