Packages

I am playing with publishing a package.

Current section

Files

Jump to
playground src playground.erl
Raw

src/playground.erl

-module(playground).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-file("/Users/bradleymehder/Developer/Frameworks/Gleam/playground/src/playground.gleam", 10).
-spec main() -> nil.
main() ->
_pipe = {rectangle, 32, 42},
_pipe@1 = shapes:shape_info(_pipe),
gleam@io:debug(_pipe@1),
_pipe@2 = {rectangle, 32, 42},
_pipe@3 = shapes:shape_info(_pipe@2),
gleam@io:debug(_pipe@3),
_pipe@4 = {circle, 32},
_pipe@5 = shapes:shape_info(_pipe@4),
gleam@io:debug(_pipe@5),
_pipe@6 = {circle, 42},
_pipe@7 = shapes:shape_info(_pipe@6),
gleam@io:debug(_pipe@7),
_pipe@8 = {square, 3.2},
_pipe@9 = shapes:shape_info(_pipe@8),
gleam@io:debug(_pipe@9),
_pipe@10 = robot_simulator:move(
south,
{position, 8, 4},
<<"LAAARRRALLLL"/utf8>>
),
gleam@io:debug(_pipe@10),
_pipe@11 = 32,
_pipe@12 = calculator:add(_pipe@11, 2),
_pipe@13 = calculator:subtract(_pipe@12, 3),
_pipe@14 = calculator:multiply(_pipe@13, 4),
_pipe@15 = calculator:divide(_pipe@14, 5),
gleam@io:debug(_pipe@15),
_pipe@16 = fetch:send_request(
<<"https://jsonplaceholder.typicode.com/todos/1"/utf8>>
),
gleam@io:debug(_pipe@16),
_pipe@17 = rock_paper_scissors:play(rock, paper),
gleam@io:println(_pipe@17),
_pipe@18 = rock_paper_scissors:play(rock, rock),
gleam@io:println(_pipe@18),
_pipe@19 = rock_paper_scissors:play(scissors, paper),
gleam@io:println(_pipe@19).