Courses/CS 460/Fall 2005/Homework/AndreLivHomework/Oct 8

From CSWiki

< Courses | CS 460 | Fall 2005 | Homework
Revision as of 05:32, 15 October 2005 by Andreliv2003@yahoo.com (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

[edit] Homework 2

%convert a list into singleton
declare
   L=[e f c b d a] L1 Singleton L3
   fun {Singleton L}
      case L of
	 nil then nil
         []H|T then [H]|{Singleton T}
      end
   end
   L3 = {Singleton L}
   {Browse {Singleton L}}