Advertisement
Guest User

C# vs Lisp

a guest
Jun 19th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. // (write-line
  2. //     (reduce (lambda (x y) (concatenate 'string x y))
  3. //             (list "Hello, " "World!")
  4. //             :initial-value ""))
  5. Console.WriteLine(
  6.     LispObject.CreateList(LispObject.CreateString("Hello, "), LispObject.CreateString("World!"))
  7.     .AsEnumerable()
  8.     .Aggregate(LispObject.CreateString(""), (acc, x) => acc.AppendToString(x))
  9.     .StringValue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement