How's about dis:

        for var i in  [| 0 >-> 10 |] do // inclusive both ends, up
        for var i in  [ 0 |>->| 10 ] do // exclusive both ends
        for var i in [| 0 <-<9 |] do // inclusive down ...

etc. The basic idea is:

        | x >-   // inclusive
        x |>-   // exclusive 
        
i.e. the loop includes values "between" the vertical bars.

Another way, srean can have his [ and ( and ) and ] but the syntax is,
respectively:

        [| [ ] |]

Actually [ and ] might be a problem because they usually mean "type subscript".

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to