Commit
•
7c89e37
1
Parent(s):
ceb7f38
docs: Add @moduledoc for MedicalTranscription.Utilities
Browse files
lib/medical_transcription/utilities.ex
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
defmodule MedicalTranscription.Utilities do
|
|
|
|
|
|
|
|
|
2 |
@doc "Takes an enumerable of atoms and tallies a count for how often each appears."
|
3 |
def tally(enumerable) do
|
4 |
Enum.reduce(enumerable, %{}, fn item, acc ->
|
|
|
1 |
defmodule MedicalTranscription.Utilities do
|
2 |
+
@moduledoc """
|
3 |
+
Contains general utility functions that are not specific to a domain or context in the system.
|
4 |
+
"""
|
5 |
+
|
6 |
@doc "Takes an enumerable of atoms and tallies a count for how often each appears."
|
7 |
def tally(enumerable) do
|
8 |
Enum.reduce(enumerable, %{}, fn item, acc ->
|