Help for this page

Select Code to Download


  1. or download this
    > my Rat @example =  1 , * ** 0.9999 ... Inf;
    [...]
    > @example[^4]
    Type check failed in assignment to @example; expected Rat but got Int
      in block <unit> at <unknown file>:1
    
  2. or download this
    > my Rat @example =  1.0, * ** 0.9999 ... Inf;
    [...]
    ...
    
    > @example[0]
    1
    
  3. or download this
    > my Rat @example =  1.0, * += 0.9999 ... Inf;
    [...]
    > @example[^4]
    (1 1.9999 2.9998 3.9997)