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

Pages: 1-

Symta Brevity

Name: Anonymous 2018-02-21 19:44

An example of Symta's expressiveness could be the implementation of quick sort algorithm, which takes just a single line of Symta code:
qsort@r$[] H,@T = @T.keep{?<H}^r,H,@T.skip{?<H}^r

Symta's qsort is arguably more readable than Haskell's version:
qsort [] = []
qsort (x:xs) = qsort [y | y <- xs, y < x] ++ [x] ++ qsort [y | y <- xs, y >= x]

Name: Anonymous 2018-02-21 20:01

unreadable shit, doesn't have less characters than the readable haskell

Name: Anonymous 2018-02-21 20:12

symta
qsort@r$[] H,@T = @T.keep{?<H}^r,H,@T.skip{?<H}^r

haskell
f=filter;q(h:t)=q(f(<=h)t)++h:q(f(>h)t);q a=a

Name: Anonymous 2018-02-21 20:15

>>3
Now post the perl version Nikita.

Name: Steve 2018-02-21 20:27

I don't get it.

Name: Anonymous 2018-02-21 23:15

Valid Perl code.

Name: Anonymous 2018-02-22 7:00

>>1
Make your're game

Name: Anonymous 2018-02-22 7:24

make your're are gaem

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