1. [phix] Learn Phix in Y Minutes

http://phix.x10.mx/pmwiki/pmwiki.php?n=Main.LearnPhixInYMinutes

A single file, executable, tutorial for Phix.

be well
_tom

new topic     » topic index » view message » categorize

2. Re: [phix] Learn Phix in Y Minutes

looking good

new topic     » goto parent     » topic index » view message » categorize

3. Re: [phix] Learn Phix in Y Minutes

   --              1   2   3   4   5    -- index head to tail 
    sequence s = { 10, 20, 30, 40, 50 } 
    --             -5  -4  -3  -2  -1    -- index tail to head 
 
        // one item 
            ? s[2] 
            ? s[-4] 
                        -- output for both is: 
            ----->  30 

Are you sure about that? I mean, we got New Math and all that, but my computer is so old it still thinks it should be 20.

new topic     » goto parent     » topic index » view message » categorize

4. Re: [phix] Learn Phix in Y Minutes

I have added Irv's suggestions.

Now, how do I huff and puff, and get this uploaded to the XinY github site?

be well
_tom

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu