@ErikSchierboom: a small but idiomatic enhancement to the recursive explanation for Scala Hamming is ready for review.
@ErikSchierboom: Scala Protein Translation approaches ready for review
Added the following text to the match and recursion approach:
A more idiomatic way to do the same thing as the substring()
method calls is to use the head()
and tail()
methods.
The head()
method returns the first Char
in the String
, and the tail()
method returns all of the Char
s after the first Char
, like so:
distanceCount(
(if (s1.head != s2.head) acc + 1 else acc),
s1.tail,
s2.tail
)
Approaches for Protein Translation
Update content.md
Update content.md
Create content.md
Update introduction.md
Create content.md
Update introduction.md
Create snippet.txt
Create snippet.txt
Create introduction.md
Update introduction.md
@ErikSchierboom: Scala Collatz Conjecture approaches ready for review
Approaches for Collatz Conjecture
Update content.md
Update content.md
Update content.md
Create content.md
Update content.md
Create content.md
Create snippet.txt
Create snippet.txt
Update introduction.md
Update config.json
Create introduction.md
TODO