►
From YouTube: Rust Language - Grupo de Estudo - Exercism parte 2
Description
Live do grupo de estudos Rust Lang BR
(DICA: pode assistir na velocidade 2x)
Resolvemos os exercicios do exercism.io
http://exercism.io/languages/rust/exercises
- leap
- raindrop
grupo https://t.me/rustlangbr do telegram
Participe! todas as terças as 22h
GIST: https://gist.github.com/anonymous/a37eac0ac83368dc6d0cd575f02a22b9
PLAY: https://play.rust-lang.org/?gist=a37eac0ac83368dc6d0cd575f02a22b9&version=stable
A
B
Very
simple,
right
his
test.
He
expected
that
the
people
in
a
crime
called
hello
world
had
a
hello
function
returning
here,
a
string,
ward
and
then
the
other
one
that
we
did,
which
was
today
a
second.
It
will
be
a
little
more
complex.
We
have
to
look
at
that
side
and
external,
but
its
test.
It
passed
a
date
here,
no
start
date
to
a
function
that
we
implemented
is
called
jirga.
B
C
B
B
It
is
an
object
of
type
b.
Is
there
and
we
can
simply
use
a
method?
Called
check
is
designer
seconds
and
still
a
rap,
and
it
already
returns
to
us
adapt
in
the
future.
Nothing
in
the
1
billion
seconds
later,
and
another
way
would
be
for
us
to
return
from
here
that
in
fact,
this
wrong
code
good
to
take
advantage
and
fix
it.
B
B
A
Just
to
give
an
honor
to
see
and
promise
meet
rodrigo
here
is
where
he
shouldn't
know
much
about
the
language
they
're.
Basically,
that's
it
and
11
chrome
12
point:
the
assistance
is
saying
there
who
I
want
everything
from
the
library.
The
whole
library
who
is
in
the
krona,
library
is
chrono
new
standard
library
right
for
a
year,
the
netherlands
take
you
have
to
download
the
first
one
you
can
run.
It
is
one
of
the
things
that
can
get
strange,
because
the
language
more
is
coming
wide
like
this
between
the
countless
ones.
A
It's
just
to
be
more
visible,
it's
possible
to
understand.
This
is
a
lot
of
use
it
standing
there
I
think
it's
an
interesting
figure.
You
could
basically
use
this
010.
You
have
to
put
the
set
in
keep
looking
against
0,
try
to
say
which
number
rounds
online.
You
are
already
much
more
readable
to
this.
One
apiaí
is
to
stay
so
as
not
to
get
too
lost
thinks
that
the
face
he
does
not
have
is
like
this.
A
He
has
a
type
that
is
called
a
result
that
you
basically
return
a
type
and
an
expected
result
and
an
error.
Then,
when
this
one
of
itself
is
a
pencil
and
then
it
will
just
return,
the
success
cases
grows.
One
case
there
was
an
error
and
it
will
give
a
nikkei
foot.
You
end
up
having
the
problem
in
your
code,
basically
so
here
in
this
box,
that
was
written
and
that's
basically
it.
A
Basically,
he
is
waiting
for
the
success
and
it
will
work
out
that
the
guard
will
succeed.
So
he
said
this
account
is
something
else.
This
giga
that
is
not
with
the
documentary
there,
but
we
create
a
variable,
is
the
variable
in
automatic
flushing
is
by
default.
The
immutable
so
basically
created
and
a
variable
is
giga
and
anti
agent,
and
these
variables
of
the
integer
type
is
like
that
with
some
methods
there.
So,
like
the
people
there,
you
can
do
a
calculation
and
save
the
1
1
billion.
A
B
A
C
A
Was
paying
attention
there?
It's
like
you,
can't
see,
I
returned,
and
so
basically
everything
like
that
is
the
reethane
e.tv.
Let's
try,
let's
try
to
align.
You
see
that
on
the
giant
led
motorcycle
against
a
vehicle
at
the
end
right
then
it
was
down,
can
basically
the
computer
that
there
are
still
things
to
happen
beautiful
right
below
and
if
it
is-
and
this
is
basically,
there
is
no
point
of
sale
at
the
end
so
making
the
buyer
returns
the
result
of
this
here
of
the
user
as
a
party
of
the
function
there.
A
B
A
The
leave
conception
fault
of
the
Chinese
geomarketing
and
it
is
basically
create
in
functions.
This
return
is
not
just
leave
the
time
to
see
it
and
it
executes
cute.
So
in
that
end
there
it
was
avoided
commented
in
the
end.
It
was
much
more
in
dilma.
It
was
simpler
to
read
besides
informatics
10,
there
is
only
one
start
more
during
the
day
when
seconds
and
everything
was
fine.
B
B
D
B
A
C
B
A
That's
something
else
interesting
to
talk
about
is
like
the
functions,
have
a
return
type
you
have
to
type
there
at
the
beginning
or
in
the
signature.
You
can
also
put
the
team
if
you
should
put
a
data
type
on
the
things
you
are
seeing.
In
addition
to
your
function
is
in
the
case
there
is
waiting,
an
integer
is
32
and
returns.
11
goiano
then
got
the
hangover.
How
is
that?
What
we
want?
This
exercise
went
wrong.
Let's
go.
B
There
is
when
we
get
down
here
in
the
olímpico.
The
first
thing
is
that
he
brings
this
structure
here
to
us.
That
is
the
that
we
already
talked
about
last
week
here
about
the
office
files,
and
it
has
the
rhythm
and
also
this
regime
is
the
description
of
the
problem
that
we
are
going
to
solve,
so
that
Mr
Celibi
is
where
we
are
going
to
solve
it,
and
here
is
the
test,
right?.
What
is
inside
the
test?
So
if
we
first
take
a
look
at
the
tests,
here,
notice.
C
B
Once
again,
there
are
some
that
have
the
ignore
here,
right,,
and
this
one
means
that
these
tests
that
have
the
attribute
that
look
will
not
run
the
first
time.
The
exercise
does
that
I've
been
researching
to
make
it
easier
and
faster
for
those
who
are
developing
to
be
able
to
run
and
execute
it
at
once
and
which
way
their
side
at
the
time
they
execute
it
to
validate.
They
don't
consume
so
much
from
their
servers
and
then
they
they
it's
so
just
one
right
instead
of
trying
everything,
but
then
we
can
remove
it.
B
If
we
want
to
guarantee
it's
really
that,
but
basically
what
we
want
to
make
this
first
test
pass
is
not
it's
going
to
get
it
from
our
daycare
there
that
we're
going
to
compile
it
called
lippi,
and
from
this
lippi
nursery
we
have
to
write
a
function
called
e,
lipe
and
and
spend
a
year.
It's
not
that
this
will
be
an
integer
here
in
this
case
here
in
1996.
B
B
C
A
A
B
E
A
F
A
B
C
A
A
A
A
C
C
E
Much
as
you
are
the
following
here,
you
you
there
who
already
works
from
within
the
affiliated
doe
right
for
you
to
do
this.
This
has
to
be
the
final
expression
of
your
function
at
the
moment.
The
final
inspection
of
this
function
is
the
false
bottom
that
is,
it
doesn't
matter.
The
alloy
will
arrive
at
the
end
that
false
bottom,
so
you
used
the
word
itanhy
inside
to
give
feedback
to
the
zone
sooner
or
else
you
use
an
elsie
to
cover
all
existing
paths
for
that
I.
B
A
C
A
A
A
A
B
C
B
A
A
C
B
C
A
A
B
B
C
B
C
B
E
B
E
B
C
A
B
A
B
E
That,
maybe
then
you
have
a
number
and
you
will
convert
it
to
the
past
language
ping
planetology.
So
if
the
number
of
viseu
for
3
sets
after
pink
floyd
won
by
5,
you
speak
club,
zezé
perrela
tung,
but
one
thing
does
not
exclude
the
other
daughter
of
Portuguese
from
the
faap
course
and
plug
in
that
processes.
The
itombe
route
and
without
I'm
not
going
to
say
anything
about
it.
So
you
're
going
to
miss
returning
the
number
itself
as
strange.
So
it
has
the
examples,
right.
B
A
A
B
D
B
The
flashes
here,
basically,
the
test,
is
doing
that's
what
I'm
going
to
explain
right.
We
pull
the
em
drops
agent
itself.
A
function
called
red
rocks.
Step
number
wait
for
his
big
bang
cool
compensate
him.
Then
how
do
we
implement
this
one
on
how
to
get
started?
I
know
there
is
more
than
one
way
too.
I
was
able
to
think
of
two
ways
to
solve
this
one,
but
it
would
be
nice
if
someone
else
who
is
connected
to
the
internet
wants
to
put
their
hand
in
the
code
and
not
be
afraid.
B
C
B
E
E
C
A
B
G
B
A
B
Is
now
what's
happening
is
the
following:
is
concatenating
everything
there?
Ok,
you
arrive
down
there
and
you
still
said
the
number
there
had
to
be
a
teach
down
there,
but
this
is
what
it
had
to
be.
This
is
line
12
and
it
can't
be
executed
all
the
time
it
can
only
be
executed
when
none
of
the
two
above
are
executed
and
I
have
11
it's
the
sif
and
faithful
if
faithful
sif
and
then
the
no,
because
there
are
also
cases
where
it's
going
to
be
for
two
na.
So
don't
__
]
with
the
santana
series.
A
E
B
A
A
Then
you
have
to
understand
nothing.
Changes
I,
believe,
that's
how
it
is
when
you
put
this
point
and
it
reached
the
end,
if
it
is
the
the
operative
will
wait
for
something
else,
because
neighborhood
or
it
below
that
line,
but
it
is
more
that
line
is
empty,
so
it
returns
to
the
one
that
seems
to
me
is
closed.
The
launch
of
the
return
of
is
being
this
close
relative,
so
he
doesn't.
He
has
it
with
him.
He
doesn't
leave.
It
won't
leave
there
simply
because
he
will
try
to
return
this.
This
word
stream
it
at.
B
B
A
A
E
C
E
Ok
now,
and
what
happened
is
that
you
are
the
fact
that
the
command
has
been
implemented
more
than
88
only
at
30
and
static
right.
So
with
your
other
ends,
just
the
dynamic
transit
and
if
you
can't
add
two
had
dynamics
so
you'll
have
to
use
the
same
one.
The
method,
which
is
what
calls
pull-pull
str
the
method
is.
B
A
C
A
E
B
A
E
A
B
E
F
A
A
C
B
F
B
B
C
C
G
A
B
E
E
So
this
is
ours
added
snow
translation,
here,,
right,,
I'll,
call
it
a
dictionary
of,
and
it's
not
a
medicine,
but
we
literally
our
dictionary
of
words
depressed
flu
pub
so
to
form
the
end.
It
was
rotated,
but
it's
a
map.
A
thread
has
in
fact
I'm
going
to
filter
the
elements
that
are
visible
and
that
defines
the
number.
E
The
words
of
my
run
within
this
parameter
can
have
an
average
pattern.
So
I'll
put
it
here,
look
at
the
number
and
the
word
then
have
the
stig
I
think.
Maybe
12
thousand
will
come
and
then
put
these
two
references
that
need
to
be
referenced
on
the
internet,
because
when
you
ask
for
a
value,
you
create
a
reference.
Like
you
put
this
in
the
argument,
you
are
doing
with
the
internet
so
get
out
of
this
consumption
of
what
is
opening
that
then
already
from
influencing
and
ok.
Then
now
I
have
access
to
my
arguments
there.
E
E
Nothing
in
fact
we're
going
to
put
an
audio
here
and
from
here
I'm
going
to
say
whatever
comes
here.
It
can't
be
anything
I'm
going
to
give
one
for
that,
because
in
recent
years,
just
going
back
through
the
sl
is
also,
if
the
training
now
I'm
going
to
give
it
I'm
going
to
reduce
making
a
movie
idol.
E
Who
thinks
it's
going
to
call
health
the
penalty,
everyone
who
is
left
everyone
who
manages
to
divide
or
concatenate
they
are
already
in
order
in
the
law,
right,
so
I'm
going
to
give
a
ford
and
then
they
will
receive
it
again
in
the
back
two
references,
because
the
two
references,
because
iter
there
some
reference
in
history
borrowing
this
campaign,
also
borrowing,
then
having
a
meal
in
front
and
the
food
filters
and
work
what
wins
all
the
exactly.
But
then
they
work
as
I
also
understand
as
a
reference.
E
E
B
E
E
The
value
is
second
with
the
pain
so
that
the
modern,
with
the
doctrine
defined
and
I'll,
simply
sound
with
what,
with
the
word
cool,
ok,
so
first,
a
filter
I
see
who
is
divisible
by
the
video
khimki,
my
n
14
n,
then
the
ones
that
went
through
so
I
download
it
I'm
going
to
count
them
all
from
a
dream
of
emptiness
or
adding
the
smoker
that
only
here
in
brazil,
and
it
adds
the
words
in
the
order
that
forms
the
sentence.
So
in
theory,
I
substitute
this
piece.
B
E
E
G
E
A
E
E
A
E
E
Is
not
mine,
more
passed
passed,
not
really.
It's
a
male
enchantment
draw
that
I.
Did
there
really,
but
it's
just
a
little
bit
of
internet
nord,
do
de
take
the
arguments
the
doubles
and
such
and
something
is
a
ceaf
functional
style
in
one
of
the
most
languages,
nowadays,
right.
You
have
the
the
your
thread
and
sweet
the
mep.
You
can
use
this
style
also
always
using
the
interveners,
right.
E
A
E
There,
so
why
does
it
mean
that
it
means
that
one
thing
is
when
the
commercial
means
that
I'm
on
the
internet
so
I'm
performing
values,
building
value
there
that
then,
that
value
was
originally
behind
from
the
tst
references
being
able
to
directly
access
my
duo
and
my
duo
values
now
because
it
came
with
22,
is
to
start.
This
question
is
not
that
ok,
so
the
first
one
came
in
case
of
iter
was
could
and
should
is
an
alternative
is
to
consume.
E
The
item
is
Borrowing
right
has
provided
tapai
will
have,
then
it
could
intuit
have
that
the
purpose
or
even
create
a
trainer
just
to
stretch
the
night
for
the
people
value.
That
is
not
going
to
get
this
reference
here.
It
will
consume
a
dictionary
so
that
it
could
not
leave
after
not
having
helped
with
this.
I
can
condition
myself
and
then
use
it
on
twitter
and
also
for
a
value
between
English
consumption.
E
E
A
G
B
E
C
D
A
Drastically
reduced
reduction
is
the
fire
because
well
at
the
time
the
option
can
rocket
is
one.
It's
so
cool
that
you
can
turn
everything
into
functional
work
who
runs
for
the
most
functional
I,
also
giving
you
very
professional
to
be
able
to
do
the
most
beautiful
things.
Closing
boxes
like
this
taxi
or
if
you
will
be
able
to
hold
the
avaí,
we
have
that
below
and
don't
worry.
You
also
create
your
codes
to
solve
it.
I
found
it
very
productive.
B
D
B
E
A
D
D
That
it
comes
late
and
would
not
have
everything,
but
sometimes
you
have
to
give
up
performance
a
little
bit
since
it
was
not
the
stench
with
readability.
So,
for
example,
maybe
10
to
train
your
employees
in
real
functions
and
increase
their
visibility.
So
I,
don't
disagree
is
saying
sometimes
it's
a
structured
program,
it's
more
typical
not
to
work.
It's
easier,
it's
more
readable
things
and
such
sometimes
you're,
probably
there
writing
it
in
a
different
way.
It's
optional
and
probably
yeah
you're
doing
it
wrong.
There's
a
simpler
way
to
do
it.
B
Pasting
this
code
here
there
it
was
beautiful,
it's
just
because
I
already
had
it
ready
here,
probably
do
it
to
pass.
There's
not
enough
time
just
to
illustrate
another
way
to
solve,
right,.
It
would
be
this
one,
right,
I
like
it
to
read
it,
I
confess
that
it
has
a
little
more
repetition
in
this
code,,
but
I
think
its
readability
is
good.
B
F
D
D
B
Going
to
make
this
code
become
one
I'm
going
to
comment
a
little
bit
here.
This
one
is
the
one
way
to
do
it
with
the
pope
and
it
moves
there.
Someone
wants
to
explain
the
role
he
played
if
he
has
doubts
about
the
role
martin,
we
spend
a
few
more
minutes
explaining
and
then
the
functional
way
two
and
then
there's
this
one
here
that
form
number
3
would
be
what
we
can
call
an
imperative
not
to
stay
there.
D
A
B
A
D
B
B
E
Is
interesting,
the
benício
that
yes,
it
is
really
going
to
be
a
risk
that
you
notice
the
line.
First,
it
you
will.
You
can
keep
it
wrong,
but
also
the
computer
will
give
you
a
morning
that
I
was
going
to
talk
about
look
and
if
this
pattern
here
is
still
achievable,
then
you
will
connect
championship
that
it
happens.
F
E
E
I
believe
that
what
the
father
puts
you
in
this
case,
the
pt
grandson,
is
obliged
to
fight
dynamically,
because
the
function
can
press
very
dynamic,
but
the
father
sends
it
would
not
need
it.
He
could
easily
use
the
tactical
teams
because
it
puts
justin
already
mounted,
right
so
I
think
it
would
be
an
option
with
better
performance
in
this
case,
because
the
same
location.