Logo

Programming-Idioms

History of Idiom 76 > diff from v61 to v62

Edit summary for version 62 by emaiax:
New Elixir implementation by user [emaiax]

Version 61

2019-10-14, 11:55:36

Version 62

2019-12-31, 18:10:20

Idiom #76 Binary digits from an integer

Create the string s of integer x written in base 2.

E.g. 13 -> "1101"

Idiom #76 Binary digits from an integer

Create the string s of integer x written in base 2.

E.g. 13 -> "1101"

Extra Keywords
int radix
Extra Keywords
int radix
Code
Integer.digits(x, 2) |> Enum.join("")