8000 GitHub - hh-ex/kata-list-span: coding challenge repo for hh.ex march edition · GitHub
[go: up one dir, main page]

Skip to content

About

coding challenge repo for hh.ex march edition

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0