Talk:Remove duplicate elements: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎APL example: PHP problem.)
Line 8: Line 8:
If order matters, then there are some solutions here that will not suffice. If it doesn't matter, it should be made explicit.
If order matters, then there are some solutions here that will not suffice. If it doesn't matter, it should be made explicit.
:I'm gonna guess that order shouldn't matter. The focus of the task is uniqueness. I didn't make the task though so I don't know, but my vote is for it not mattering. --[[User:Mwn3d|Mwn3d]] 18:30, 13 July 2009 (UTC)
:I'm gonna guess that order shouldn't matter. The focus of the task is uniqueness. I didn't make the task though so I don't know, but my vote is for it not mattering. --[[User:Mwn3d|Mwn3d]] 18:30, 13 July 2009 (UTC)

== Bash ==

Does anybody know how to do it with Bash (or any other shell)?
for example, if I start with "-I/usr/include -I/usr/include -I/usr/other" I would like to get "-I/usr/include -I/usr/other"

Revision as of 20:59, 6 October 2009

APL example

Encodings problem of the APL example? Where's the Unique operator (it appears in the text, but not in the code) --ShinTakezou 13:54, 31 March 2009 (UTC)

GeSHi doesn't do APL correctly. It does seem to be an encoding problem. If you see it elsewhere, change the lang tags to pre tags for now. Maybe it will be fixed in future versions of GeSHi. --Mwn3d 18:29, 13 July 2009 (UTC)
Not a GeSHi problem, a PHP problem. Believe it or not, PHP has problems with UTF-8. Will be fixed in PHP 6, but in the mean time, best-practices methods that do things like escape html-sensitive entities break. That's what turned out to be the root cause of the moose issue, too. --Short Circuit 22:55, 13 July 2009 (UTC)

Does Order Matter

If order matters, then there are some solutions here that will not suffice. If it doesn't matter, it should be made explicit.

I'm gonna guess that order shouldn't matter. The focus of the task is uniqueness. I didn't make the task though so I don't know, but my vote is for it not mattering. --Mwn3d 18:30, 13 July 2009 (UTC)

Bash

Does anybody know how to do it with Bash (or any other shell)? for example, if I start with "-I/usr/include -I/usr/include -I/usr/other" I would like to get "-I/usr/include -I/usr/other"