Skip to content

Instantly share code, notes, and snippets.

@zkessin
Last active July 18, 2016 21:36
Show Gist options
  • Save zkessin/e5b61e80f2d280e5496f60a8e42f0c79 to your computer and use it in GitHub Desktop.
Save zkessin/e5b61e80f2d280e5496f60a8e42f0c79 to your computer and use it in GitHub Desktop.
cmd: { type = "leaf", home = "writeLines", value = [{ username = "alarnahope", email = "[email protected]" },{ username = "alexxis_xx", email = "[email protected]" },{ username = "bohotailor", email = "[email protected]" },{ username = "boneandfinn", email = "[email protected]" },{ username = "celebrityfashionlookbook", email = "[email protected]" },{ username = "crashingred", email = "[email protected]" },{ username = "damon_archbold", email = "[email protected]" },{ username = "designfinder", email = "[email protected]" },{ username = "emhewitt_", email = "[email protected]" },{ username = "gohandco", email = "[email protected]" },{ username = "houseofalexandra_co", email = "[email protected]" },{ username = "iamfashionshy", email = "[email protected]" },{ username = "intersectionpaddington", email = "[email protected]" },{ username = "jennifer__chong", email = "[email protected]" },{ username = "jessie_khoo", email = "[email protected]" },{ username = "michelle.chui", email = "[email protected]" },{ username = "paulsmollenphotography", email = "[email protected]" },{ username = "royceandmonroe", email = "[email protected]" },{ username = "sydneyandstreet", email = "[email protected]" },{ username = "thechicndamned", email = "[email protected]" },{ username = "thecurlybrownie", email = "[email protected]" },{ username = "thegirlswhoatetheworld", email = "[email protected]" },{ username = "thelondonerinsydney", email = "[email protected]" },{ username = "thesydneyblogger", email = "[email protected]" },{ username = "travelsofastylist", email = "[email protected]" },{ username = "union_womens", email = "[email protected]" },{ username = "via.zen", email = "[email protected]" },{ username = "vika_reounova", email = "[email protected]" },{ username = "z.effrey", email = "[email protected]" }] }
type alias Email =
{ username : String
, email : String
}
export : List Email -> Cmd a
export emails =
writeLines emails
port writeLines : List Email -> Cmd msg
TypeError: subs[i] is not a function
subs[i](value);
function onEffects(router, cmdList, state)
{
while (cmdList.ctor !== '[]')
{
var value = converter(cmdList._0);
for (var i = 0; i < subs.length; i++)
{
subs[i](value);
}
cmdList = cmdList._1;
}
return init;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment