Skip to content

Instantly share code, notes, and snippets.

@mlooney
Created November 10, 2015 16:44
Show Gist options
  • Save mlooney/edc97e17af0b243f366a to your computer and use it in GitHub Desktop.
Save mlooney/edc97e17af0b243f366a to your computer and use it in GitHub Desktop.
filled_rows = :array.foldl(fn _, value, acc ->
case value do
nil -> acc ++ [false]
data -> acc ++ [true]
end
end, [], state.block_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment