Search:

Type: Posts; User: AdamB

Search: Search took 0.07 seconds.

  1. Replies
    132
    Views
    73,465

    Sticky: Re: 500 Ways to Print 1 to 10

    #53 Using PHP's array_walk() and (very ugly) create_function():


    $nums = array(1,2,3,4,5,6,7,8,9,10);
    array_walk($nums, create_function('$x', 'echo "$x ";'));
  2. Replies
    132
    Views
    73,465

    Sticky: Re: 500 Ways to Print 1 to 10

    #49 Java

    public class Print1To10
    {
    public static void main(String[] args)
    {
    System.out.println(1);
    System.out.println(1<<1);
    System.out.println(1^1<<1);...
Results 1 to 2 of 2