Skip to content

Rocket Seat - Ignite - Elixir - Challenge 1 - A simple module that calculates the size of a list.

Notifications You must be signed in to change notification settings

librity/ignite_list_length

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ListLength

A simple module that calculates the size of a list with tail-call-optimized recursion.

Commands

$ mix test
$ iex -S mix
> ListLength.call([1, 2, 34])
3
> ListLength.call([1, 2, 34, 5, 5, 6])
6
> ListLength.call([])
0

About

Rocket Seat - Ignite - Elixir - Challenge 1 - A simple module that calculates the size of a list.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages