Thoughts on C++? (63)

40 Name: #!/usr/bin/anonymous : 2009-06-28 10:33 ID:Heaven

>>39
c♯ (which you apparently don't know as well as you think you do):

foreach(var i in Enumerable.Range(1, 10)) Console.Write("{0} ", i);

prolog:

numlist(1, 10, L), forall(member(N, L), format("~d ", N)).

haskell:

mapM_ (putStr . flip shows " ") [1..10]

factor:

10 [ 1 + pprint " " write ] each
This thread has been closed. You cannot post in this thread any longer.