Kaia Leahy
Kaia Leahy
`string` is not a SQLite3 data type. Try `text`. See also section 3.1 of the [sqlite3 documentation](https://www.sqlite.org/datatype3.html) on data types.
Sqlite3 is dynamically typed, and the type is associated with the data, not the column. If you want to read bytes, then you need to write bytes: ```crystal require "db"...
A variant on this has already been mentioned, but I prefer: ```ruby module ETL def self.transform(old) old.flat_map { |score,letters| letters.map(&:downcase).product([score]) }.to_h end end ``` There's nothing wrong with nested blocks,...
This code is still broken.
I think that the approach given in the notes is somewhat flawed. ```ruby require 'scanf' PAIRS = (0..9).zip([0, 2, 4, 6, 8, 1, 3, 5, 7, 9]) def luhn_sum(string) string.delete('...