Skip to content

hh-ex/kata-list-span

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

March Edition

coding challenge repo for hh.ex march edition

Description:

The span function is a good one to know. It accepts an list and a predicate function and returns a tuple of two lists. The first contains all the elements of the argument list up to the item that caused the first failure of the predicate. The second contains the rest of the original list.

For example,

[ 2, 4, 6, 1, 8, 10 ]
|> Span.sort &(Integer.is_even(&1))
# => {[2,4,6],[1,8,10]}

Your task is to...wait for it... write your own span function!!!

About

coding challenge repo for hh.ex march edition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages