📘 Computing factorial! using Perl 6

Print the factorial of a given number. By definition, the factorial of a positive integer number N is a product of all the integers numbering from 1 to N, including N. In Perl 6, this can be easily expressed with the use of a reduction operator: my $n = 5;my $f = [*] 1 .. $n;say $f; The … Continue reading “📘 Computing factorial! using Perl 6”

A Language A Day

Andrew ShitovA Language A DayA brief introduction to 21 programming languagesDeepText, 2024 Electronic editionsLeanPub (PDF, EPUB)Amazon (Kindle): US, UK, DE, FR, ES, IT, NL, JP, BR, CA, MX, AU, IN Paper editionsAmazon — hardcover: US, UK, DE, FR, ES, IT, NL, JP, BR, CA, MX, AU, INAmazon — paperback: US, UK, DE, FR, ES, IT, NL, JP, … Continue reading “A Language A Day”

D at a Glance — A Language a Day, Advent Calendar Day 21/24

About this ‘A Language a Day’ Advent Calendar This article became a part of my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “D at a Glance — A Language a Day, Advent Calendar Day 21/24”

Mercury at a Glance — A Language a Day, Advent Calendar Day 20/24

About this ‘A Language a Day’ Advent Calendar This article became a part of my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “Mercury at a Glance — A Language a Day, Advent Calendar Day 20/24”

Red at a Glance — A Language a Day, Advent Calendar Day 19/24

About this ‘A Language a Day’ Advent Calendar This series of publications transformed into my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “Red at a Glance — A Language a Day, Advent Calendar Day 19/24”

Hy at a Glance — A Language a Day, Advent Calendar Day 18/24

About this ‘A Language a Day’ Advent Calendar This article became a part of my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “Hy at a Glance — A Language a Day, Advent Calendar Day 18/24”

Go at a Glance — A Language a Day, Advent Calendar Day 17/24

About this ‘A Language a Day’ Advent Calendar This article became a part of my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “Go at a Glance — A Language a Day, Advent Calendar Day 17/24”

V at a Glance — A Language a Day, Advent Calendar Day 16/24

About this ‘A Language a Day’ Advent Calendar This series of publications transformed into my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “V at a Glance — A Language a Day, Advent Calendar Day 16/24”

Nim at a Glance — A Language a Day, Advent Calendar Day 15/24

About this ‘A Language a Day’ Advent Calendar This article became a part of my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “Nim at a Glance — A Language a Day, Advent Calendar Day 15/24”

Clojure at a Glance — A Language a Day, Advent Calendar Day 14/24

About this ‘A Language a Day’ Advent Calendar This article became a part of my book ‘A Language a Day’, which you can get in both electronic and paper format. Languages covered in the book: C++, Clojure, Crystal, D, Dart, Elixir, Factor, Go, Hack, Hy, Io, Julia, Kotlin, Lua, Mercury, Nim, OCaml, Raku, Rust, Scala, and … Continue reading “Clojure at a Glance — A Language a Day, Advent Calendar Day 14/24”

OCaml at a Glance — A Language a Day, Advent Calendar Day 13/24

About this ‘A Language a Day’ Advent Calendar Welcome to Day 13 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the OCaml programming language. Facts about the language Some facts about OCaml: Based on Caml (which is based on ML) Static type checking Supports functional, imperative, and object-oriented programming Appeared … Continue reading “OCaml at a Glance — A Language a Day, Advent Calendar Day 13/24”