Help for this page

Select Code to Download


  1. or download this
      DB<1> my @foo = 1 .. 10;
    
      DB<2> print join ", " => @foo;
    
  2. or download this
    # let foo = [ 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; ];;
    val foo : int list = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10]
    # List.iter (fun x -> print_int x) foo;;
    12345678910- : unit = ()
    
  3. or download this
    irb(main):001:0> foo = 1 .. 10
    => 1..10
    irb(main):002:0> foo.each {|x| print x }
    12345678910=> 1..10