Thank God It’s Friday!
Have a really relaxed weekend, but at first try this challenge 😀
Please send your answers to: patrick.plattes@googlemail.com
All user with the right answer ’till 14pm will get the points, but the first one will get +5.
Type: full function/method
sort([Pivot|K]) ->
sort([ B || B <- K, B < Pivot])
++ [Pivot] ++
sort([ B || B <- K, B >= Pivot]);
sort([]) -> [].
Hint: no hint – let’s make it more challenging today 😈
Points for this challenge: 25
[Update]The dot at the end of the last line is important. Sorry for the typo 😳 [/Update]