Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Perl6

Name: Anonymous 2011-02-12 6:10

Fibonacci in Perl6.

my @fib := (0, 1, *+* ... *);

Can your toy language do this?

Name: Anonymous 2011-02-12 16:25

Can Perl6 do this?
#include <stdio.h>
int main(void) {
    struct num{ unsigned int a:3, b:3, c:2; } n = {0};
    unsigned char *c = &n;
    do do printf("%hhu\n", *c);
    while(!(n.a-- && !++n.b));
    while(++n.c);
    return 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List