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

LOGIC

Name: Anonymous 2008-08-03 15:59

Sup guise,lets be logic:

factorial=lambda x:((x==1 and 1) or x*factorial(x-1))

fizzbuzz=lambda i:[str(((not x%3)  and x%5 and 'fizz') or ((not x%5) and x%3 and 'buzz') or ( ((not x%5) and (not x%3)) and 'fizzbuzz') or x) for x in range(1,i+1)]

Also,NO INDENTATION OF CODE

Name: Anonymous 2008-08-03 18:56

faggot(Post) :- post_programming_language(Post, Language),
                in_thread(Post, Thread),
                be_logic(Thread),
                \+ logical_language(Language).

?- faggot(>>1).
Yes

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