Ogú
(Redirected from Ogu)
Ogú is a dynamic programming language. Ogú is a comic character created by chilean illustrator Themo Lobos.
Examples
Hello World
main () = println! "hello world"
Fizzbuzz
fizz-buzz! i | i % 3 == 0 = println! f"${i} FIZZ" | i % 5 == 0 = println! f"${i} BUZZ" | otherwise = println! i main () = [0..1000] |> fizz-buzz!
Quicksort
quicksort [] = [] quicksort (x :: xs) = smallerSorted ++ (x :: biggerSorted) where smallerSorted = quicksort [a | a <- xs, a <= x] biggerSorted = quicksort [a | a <- xs, a > x]