Home > Community > Forums > PCB SKILL > List operation

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 List operation 

Last post Mon, Jun 24 2013 7:16 AM by fxffxf. 1 replies.
Started by Pawandeep 19 Jun 2013 09:51 PM. Topic has 1 replies and 464 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Jun 19 2013 9:51 PM

    • Pawandeep
    • Top 75 Contributor
    • Joined on Sat, Oct 15 2011
    • Singapore, 00-SG
    • Posts 106
    • Points 1,690
    List operation Reply

    Hi,

    I would like to know the difference in between these two statements 

    '(1 2)

    list(1 2)

    I tried to run the attached listOp.il file and it showed some unexpected behavior for me.

    Thanks,

    Pawan

    Filed under:
    • Post Points: 20
  • Mon, Jun 24 2013 7:16 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 296
    • Points 4,710
    Re: List operation Reply

     The single quote operator builds a list using arguments exactly as they are presented while list evaluates the expressions. Examples:

    c = 3

    b = 2

    '(1 b  c)   ->  (1 b c)

    list(1 b c) -> (1 2 3)

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Pawandeep at 19 Jun 2013 09:51 PM. Topic has 1 replies.