How to make a linked list?

I've seen how to implement a linked list in oracle ? but it's not what I'm interested in.
First of all, it is just a curiosity, no serious task behind it. I think I've almost made a linked list (of chars) type, however it misses the notion of empty list and thus I virtually cannot construct it.
create or replace type LString as object
  head Char,
  tail ref LString,
  member function cons(
    p_x Char)
    return LString
create or replace type body LString is
  member function cons(
    p_x Char)
    return LString
  is
    xs LString;
  begin
    xs := LString(head => p_x, tail => self.tail);
    return xs;
  end;
end;I need to be able to make empty list to construct other lists, for example:
empty_lstring.cons('H').cons('i').cons('!')
How can I do it?
Edited by: 922141 on 12.07.2012 7:02

I need to be able to make empty list to construct other lists, for example:
empty_lstring.cons('H').cons('i').cons('!')
Why ? Can you mention one procedural language who can do this? I can't! Can you?
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • How to make downloadable links in Adobe Muse

    I am new to website design and am trying to figure out how to make downloadable links for some PDF flyers, PSD templates I am creating.   Not sure if "downloadable links" is the correct term for what I'm trying to say but in a nutshell I am creating Business Flyer's in PDF form and Photoshop PSD template files that I would like to be able to have my users click a link that allows them to download them right to their desktop.  Any help would really be appreciated!

    Hi caybar10gaming,
    I had the same question as you and was searching online for how to add "downloadable links" as well so your not alone in that lol. Anyways, I found this video that explains how to do this. I hope this helps you, as it did me. Good Luck  
    http://tv.adobe.com/watch/muse-feature-tour/add-and-link-to-any-type-of-file/
    -Caitlin

  • How to make a link to an image in flash?

    Hi,
    I´m new in Flash CS3 and I´m trying to get some
    answers to my problem.. The question is
    that how do I create a link to an image in flash??
    I know how to make a link to a text field but I really
    don´t know how this could get working properly.. :/

    Link to an external URL image? In AS 2 the code is
    'getURL("putaddresshere")' and in AS 3 it's 'navigateToURL("")' ...
    If it's a simple image, it's easier just to import it to the
    stage, save it as a symbol, put it in a timeline frame and then
    code your link so on click or rollover it goes
    'gotoAndPlay(framenumber)'.

  • How to make a link page come up in seperate window

    Am not sure how to make a link page to anther site for
    insatance come up in seperate window so that they do not navigate
    away from my site.Thanks Tony

    Select the item you want to use as a link. In the property
    inspector, type
    in the full path to the website you want to link to and set
    the Target to
    _blank.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html
    "chesterarebest" <[email protected]> wrote
    in message
    news:e88357$ifp$[email protected]..
    > Am not sure how to make a link page to anther site for
    insatance come up
    > in seperate window so that they do not navigate away
    from my site.Thanks
    > Tony

  • How to make a SELECT LIST READONLY

    Hi,
    I have a form to update the existing values in a table. Primary column is based on a Select List.
    So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
    SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
    There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
    I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
    Thanks in advance...
    mc

    You define a function(this is based aorund jQuery selectors) in the page header like
    <script>
      var makereadonly = function(selector, makeReadonly) {
          $(selector).filter("select").each(function(i){
              var select = $(this);
              //remove any existing readonly handler
              if(this.readonlyFn) select.unbind("change", this.readonlyFn);
              if(this.readonlyIndex) this.readonlyIndex = null;
              if(makeReadonly) {
                  this.readonlyIndex = this.selectedIndex;
                  $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
                  this.readonlyFn = function(){
                      this.selectedIndex = this.readonlyIndex;
                  select.bind("change", this.readonlyFn);
          //For input items
          $(selector).filter("input,textarea").attr('readOnly','readOnly');
          $(selector).filter("input,textarea").css('background-color','#CDCDCD');
    </script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
      makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

  • HT4759 How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    Welcome to the Apple community.
    Calendar and reminders are two different and separate apps, you cannot transfer information between the two of them.

  • How to make a link in textflow that send parameters to a function?

    How to make a link in textflow that send parameters to a function?

    In the examples included with the weekly builds there is a CustomLinkEventHandler.as example.  Passing parameters would be done in the CustomClickHandler function.  You could attach the parameters to the LinkElement as user styles using the setStyle API.
    Hope that helps,
    Richard

  • How to make relative links

    Hello.
    I need your help.
    Inside the public_html folder I have two files one index.dir and part1.dir The file (index.dir) I wanted to do html and I do the Regulating through public settings
    My problem is that it will link files? I do not know how to do it and I want your help please.
    How to make relative links?
    Information my project test:
    Script from index to part1
    -- DESCRIPTION --
    on getBehaviorDescription me
      return \
        "GO NEXT BUTTON" & RETURN & RETURN & \
        "Moves the playback head to the next marker when the user clicks on the sprite." & RETURN & RETURN & \
        "PERMITTED MEMBER TYPES:" & RETURN & \
        "Graphic members" & RETURN & RETURN & \
        "PARAMETERS: None"
    end getBehaviorDescription
    on getBehaviorTooltip me
      return \
        "Use with graphic members. " & \
        "Moves the playback head to the next marker on mouseUp."
    end getBehaviorTooltip
    -- HISTORY --
    -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
    --  5 January   2000: updated to D8 <km>
    on mouseUp me
      go frame "test1" of movie "pat1" -- test1 is Maker and the file is part1.dir
    end mouseUp
    on isOKToAttach (me, aSpriteType, aSpriteNum)
      tIsOk = 0
      if aSpriteType = #graphic then
        tIsOK = 1
      end if
      return(tIsOK)
    end on
    script from part1 to index
    -- DESCRIPTION --
    on getBehaviorDescription me
      return \
        "GO PREVIOUS BUTTON" & RETURN & RETURN & \
        "Moves the playback head to the previous marker when the user clicks on the sprite." & RETURN & RETURN & \
        "PERMITTED MEMBER TYPES:" & RETURN & \
        "Graphic members" & RETURN & RETURN & \
        "PARAMETERS: None"
    end getBehaviorDescription
    on getBehaviorTooltip me
      return \
        "Use with graphic members. " & \
        "Moves the playback head to the previous marker on mouseUp."
    end getBehaviorTooltip
    -- HISTORY --
    -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
    --  5 January   2000: updated to D8 <km>
    on mouseUp me
      go frame "Intro" of movie "index" -- Intro is Maker and the file is index.dir
    end mouseUp
    on isOKToAttach (me, aSpriteType, aSpriteNum)
      tIsOk = 0
      if aSpriteType = #graphic then
        tIsOK = 1
      end if
      return(tIsOK)
    end on
    Please help
    Look my page for you to understand my problem www.ionio.gr/~aleksgeor

    It looks like you have taken a behavior from the Library Palette and hard coded it to suit your needs. This was unnecessary. Instead try the following behaviors attached to buttons that take you between movies - assuming they are in the same directory:
    on mouseUp me
      gotoNetMovie("@/part1.dcr#test1")
    end
    on mouseUp me
      gotoNetMovie("@/test.dcr#Intro")
    end
    Also, you should Shockwave-compress your files to DCR (see the Publish Settings) in order to make your movies as small as possible so they download quickly

  • How to make email link with a button with AC2 in flash cs3?

    How to make email link with a button with AC2 in flash cs3?
    I wrote this, but it does not work:
    btn_emailinfo.on (release) {
    getURL("mailto:"[email protected]");
    }

    I am guessing you put that on a frame?
    If so, the syntax is as follows:
    btn_emailinfo.onRelease = function(){
    getURL("mailto:[email protected]");
    Though, if you are placing it directly on the button itself,
    the syntax is:
    on(release){
    getURL("mailto:[email protected]");
    }

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • How to make the link between the technical version and the packaging vers.

    Hello,
    Does anyone know how to make the link between the technical version number and the packaging version number ?
    For exemple, I can download on the SAP Market Place the version B1iSN 8.8 PL7 but if I look into the B1iSN the version information, it returns B1iP_3.0_SP04_HF03.
    This is quite confusing.
    Thank you.

    Hi Gordon,
    In fact this information is usefull for me. I was looking for a customer installation but he did not remember which version was installed. They are facing some problems. So I don't know if I have to update B1iSN or not to solve it.
    B1iSN returns only the technical version number, but I would like to know which version was downloaded from the Market Place.

  • How to make a link which open seperated page

    I like to create a set of links in my list to a reference different sites, when user click it, the link open the sites on seperated browser windows, so the original link list is still avaialble to user.
    Is there an attibute on list which allow me do so?

    How can you make a Tab link to an external url or a static file (i.e. PDF document) that opens up in a separate window? I know how to do all this stuff in standard HTML. It's easy. The problem is that I am only given the option to specify a page within my application and not an actual URL for tabs.
    I tried to hack around it by renaming my tab to something like &lt;a href="#" onClick="location.href='http://www.mysite.com'" target="_blank"&gt;My Tab Label&lt;/a&gt;. The problem is that HTML_DB replaces the spaces in my anchor tag with a bunch of &amp;nbsp;'s so the link does not work.
    Got any other ideas?

  • How to make a link in a report open a Form in a different region of the same page ?

    Hi,
    I developped a report and a form for the same table. I also created a link and used it in my report so that when I click on the link of one record, the form is opened and display this record.
    My problem is that when I include my report as a portlet and I click on a link, the form is opened in full screen mode by replacing the page containing my report.
    What should I do in order to open this form in another region of the same page ?
    Thanks a lot

    I presume that the two regions are working fine with their individual buttons and your issue is how to make them both save with one button.
    Here is how
    a. You will have 2 ApplyMRU and 1 ApplyMRD processes for each of the regions. Right? Lets say you have 2 "Save" (i.e. label=Save) buttons, one has name SUBMIT and the other SAVE ( SUBMIT and SAVE being the requests that will be sent when they are clicked , respectively)
    b. Make the Display condition on one of the buttons 'Never'. Now it won't show when you run the page. Lets say you made SAVE's conditional Display 'Never'
    c. Go and change the condition on all ApplyMRU and ApplyMRD processes from "When Button Pressed" to "Request is contains in Expression1". In Expression1 enter SUBMIT,SAVERegards

  • Outlook 2010 - how to make "global address list" display larger?

    Does anyone know how to make the "global address list" box and text appear larger in Outlook 2010? 
    Thanks

    What do you mean? Can you please explain in detail?
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • How to concatenate two linked lists?

    Can anyone help me with this? I'm stuck. I'm trying to concatenate two linked lists. I've created a method that adds a node to the beginning of a list and a second method to concatenate. My first method works, but not my second...
    First method:
    public static Node insertFirst(Node head, Node node){
              Node newNode = new Node();          // declare and initialize newNode.
              newNode = node;                    // store the new item in the new node.
              newNode.link = head;               // newNode.link points to the head.
              head = newNode;                    // update head to be newNode.
              return head;
         }Here is where I have my problem:
    public static Node mergeTwoLists(Node a, Node b){
              Node heada = a;
              Node headb = b;
              if(heada == null)
                   return headb;                    //if heada is null then returns list headb.
              else if(headb == null)
                   return heada;                    //if headb is null then returns list heada.
              else if(heada == null && headb == null)     //if both lists are null, returns null.
                   return null;
              else if(heada.link == null){     //only one element in heada.
                   headb = insertFirst(b, a);               // inserts the element in heada into headb.
                   return headb;
              }//end else if(heada.link == null).
              else if(headb.link == null){     //only one element in headb.
                   heada = insertFirst(a,b);               // inserts the element in headb into heada.
                   else {
                        mergeTwoLists(heada.link, headb);
                        return heada;
                   }//end else
              return heada;
              }//end mergeTwoLists method.I think in this method I'm only adding the nodes if there is only one node in one of the lists. But if there are more than one element in a list...I'm confused as to how to code the last else statement that contains the recursive call.
    Can someone help?
    Thanks
    aiki985

    Can't you just point the tail of A to the head of B?
    I don't think I'd do this recursivly at all. Use a
    while look to find the last node in A and then link
    it to whatever the first element in B is.
    while(A.next != null){
    A = A.next;
    A.next = B;
    Java that up a bit and check for nulls and it should
    work.o.k. thanks...let me try that. It does seem awkward recursively...
    aiki985

Maybe you are looking for

  • Service Number is not getting updated in the PR called by BAPI

    Hi , When i create a Service PR using bapi BAPI_REQUISITION_CREATE FM , service details ( Service number, Qty, Gross price, ) are not getting updated in Service tab of Purchase requisition transaction. I am passing all the services related parameters

  • Solutions for lots of hard drive space?

    Yes, this is a repost from my thread in the getting started forum, but I figured that this board is more heavily populated, and perhaps some professional videographers visit here more frequently to help me out, so I'm posting my question here as well

  • ITunes stopped working completely. Please help.

    I installed Origin, and iTunes stopped responding. I uninstalled Origin, iTunes still won't work. I try uninstalling iTunes and reinstalling, and it isn't installing. What do I do?

  • Error when startup Oracle 10.2.0 database

    Hi all, I'm using Oracle 10g v10.2.0 on Windows 2K Advanced Server. I want to drop schema SYSMAN following the instructions available in the forum. But I cannot startup (restrict) the database after shutdown it. My commands: SQL> connect / as sysdba

  • Brand new ipod 7th gen wont syn or turn on, please help!

    Just tried to syn my brand new ipod nano 7th generation but have encountered problems that I'm certain should not be happened as this has never happened to me before now. Firstly, it said that I had to update itunes, which I did. Then, registered my