Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'more list stuff' topicStudent Support Forum > General > "more list stuff"

Next Comment >Help | Reply To Topic
Author Comment/Response
prettyperla
09/07/11 5:49pm

{{0,0,"aaa"},{1,1,"aaa"},{2,2,"bbb"},{3,3,"bbb"},{4,4,"bbb"},{5,5,"ccc"},{6,6,"ddd"},{7,7,"ddd"},{8,8,"ddd"},{9,9,"ddd"}}

in the third position, I get similar letters. I want to display the first and the last. if only one exists, I would like to display it twice since it is the beginning and the end.

this would be the output would be:

{{0,0,"aaa"},{1,1,"aaa"}},{{2,2,"bbb"},{4,4,"bbb"}},{{5,5,"ccc"},{5,5,"ccc"}},{{6,6,"ddd"},{9,9,"ddd"}}

thanks in advance

URL: ,

Subject (listing for 'more list stuff')
Author Date Posted
more list stuff prettyperla 09/07/11 5:49pm
Re: more list stuff Patrick 09/08/11 2:52pm
Next Comment >Help | Reply To Topic