Packages

Generate lorem ipsum placeholder text in Gleam

Current section

Files

Jump to
lorem_ipsum src lorem_ipsum@options.erl
Raw

src/lorem_ipsum@options.erl

-module(lorem_ipsum@options).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/lorem_ipsum/options.gleam").
-export([with_count_and_units/3]).
-export_type([units/0, format/0, options/0]).
-type units() :: words | sentences | paragraphs.
-type format() :: plain | html.
-type options() :: {options,
integer(),
units(),
format(),
integer(),
integer(),
integer(),
integer(),
binary(),
list(binary())}.
-file("src/lorem_ipsum/options.gleam", 40).
-spec with_count_and_units(options(), integer(), units()) -> options().
with_count_and_units(Options, Count, Units) ->
{options,
_,
_,
Format,
Paragraph_lower_bound,
Paragraph_upper_bound,
Sentence_lower_bound,
Sentence_upper_bound,
Suffix,
Words} = Options,
{options,
Count,
Units,
Format,
Paragraph_lower_bound,
Paragraph_upper_bound,
Sentence_lower_bound,
Sentence_upper_bound,
Suffix,
Words}.