Logo

Programming-Idioms

  • Elixir
  • C++
#include <iostream>
using namespace std;
for (int i = 0; i < 10; ++i)
  cout << "Hello\n";
1..10 |> Enum.each(fn _ -> IO.puts "Hello" end)

The pipe operator is very common in elixir and is used to chain function calls
with Ada.Text_IO;
use Ada.Text_IO;
for I in 1 .. 10 loop
  Put_Line ("Hello");
end loop;

New implementation...
< >
programming-idioms.org