Skip to content

Instantly share code, notes, and snippets.

View TattdCodeMonkey's full-sized avatar

Rodney Norris TattdCodeMonkey

View GitHub Profile
@TattdCodeMonkey
TattdCodeMonkey / flow.exs
Created October 19, 2016 15:00
NashElixir - 10/18/2016 - Hacking with Flow v0.7
dir_of_wiki = "Archive"
file_name = "fixtures/war_and_peace.txt"
alias Experimental.Flow
defmodule OurTest do
def count_words_single(file_name) do
File.stream!(file_name)
|> Enum.flat_map(&String.split(&1,~r(\b), trim: true))