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

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: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

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