This commit is contained in:
SowinskiBraeden committed 2026-10-15 19:01:09 -07:00
1 parent 6c54e7a49b
commit 85297ca4a8
3 files changed
+95

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
defmodule Lab4a do
for line <- String.split(File.read!("atomic-weights.txt"), "\n", trim: true) do
[_number, symbol, _name, weight] = String.split(line)
def unquote(:"#{String.downcase(symbol)}")(), do: unquote(String.to_float(weight))
end
end