Skip to content

Instantly share code, notes, and snippets.

@zkessin
Last active July 18, 2016 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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 = "style@thateffortlessbitch.com.au" },{ username = "alexxis_xx", email = "info@alexxis.com.au" },{ username = "bohotailor", email = "Bohochicnlt@gmail.com" },{ username = "boneandfinn", email = "info@boneandfinn.com.au" },{ username = "celebrityfashionlookbook", email = "Info@celebrityfashionlookbook.com" },{ username = "crashingred", email = "info@sonailicious.com" },{ username = "damon_archbold", email = "damon@mere.com.au" },{ username = "designfinder", email = "designfinderstyling@gmail.com" },{ username = "emhewitt_", email = "emmakatehewitt@gmail.com" },{ username = "gohandco", email = "info@gohandco.com.au" },{ username = "houseofalexandra_co", email = "hello@houseofalexandra.com" },{ username = "iamfashionshy", email = "fashionshy13@gmail.com" },{ username = "intersectionpaddington", email = "info@theintersectionpaddington.com.au" },{ username = "jennifer__chong", email = "tnightwedream@gmail.com" },{ username = "jessie_khoo", email = "fashionandsounds@gmail.com" },{ username = "michelle.chui", email = "carouselofcolour@gmail.com" },{ username = "paulsmollenphotography", email = "paul@paulsmollen.com" },{ username = "royceandmonroe", email = "contact@royceandmonroe.com" },{ username = "sydneyandstreet", email = "sydneyandstreet@gmail.com" },{ username = "thechicndamned", email = "kyuanxx@gmail.com" },{ username = "thecurlybrownie", email = "thecurlybrownie@gmail.com" },{ username = "thegirlswhoatetheworld", email = "tgwatw@gmail.com" },{ username = "thelondonerinsydney", email = "londonerinsydney@outlook.com" },{ username = "thesydneyblogger", email = "cassvictoriah@gmail.com" },{ username = "travelsofastylist", email = "aprilcartwright.stylist@gmail.com" },{ username = "union_womens", email = "ange@unionstore.com.au" },{ username = "via.zen", email = "contact@via-zen.com" },{ username = "vika_reounova", email = "vika585@hotmail.com" },{ username = "z.effrey", email = "z.effrey@hotmail.com" }] }
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