{"id":5162,"date":"2015-11-11T18:30:16","date_gmt":"2015-11-11T17:30:16","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/?p=5162"},"modified":"2015-11-12T18:38:58","modified_gmt":"2015-11-12T17:38:58","slug":"i1m2015-definiciones-de-tipos-en-haskell","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/i1m2015-definiciones-de-tipos-en-haskell\/","title":{"rendered":"I1M2015: Definiciones de tipos en Haskell"},"content":{"rendered":"<p>En clase de hoy de <a href=\"http:\/\/www.cs.us.es\/~jalonso\/cursos\/i1m-15\">Inform\u00e1tica de 1\u00ba del Grado en Matem\u00e1ticas<\/a> se ha estudiado la definici\u00f3n de nuevos tipos de datos y de funciones sobre dichos tipos. Concretamente, se ha visto<\/p>\n<ul>\n<li>c\u00f3mo definir tipos usando <em>type<\/em>,<\/li>\n<li>c\u00f3mo definir funciones con dominio o rango en tipos definidos usando <em>type<\/em>,<\/li>\n<li>c\u00f3mo definir tipos usando <em>data<\/em>,<\/li>\n<li>c\u00f3mo definir funciones con dominio o rango en tipos definidos usando <em>data<\/em> y<\/li>\n<li>c\u00f3mo definir tipos de datos recursivos usando como ejemplo los naturales, las listas y los \u00e1rboles<\/li>\n<\/ul>\n<p>Se ha insistido en la metodolog\u00eda de definici\u00f3n de funciones recursivas sobre tipos de datos escribiendo una ecuaci\u00f3n por cada uno de los constructores del tipo de dato.<\/p>\n<p>Finalmente, se comentaron las distintas soluciones del problema <a href=\"http:\/\/bit.ly\/1Mq2n4I\">N\u00fameros muy divisibles por 3<\/a> y la comparaci\u00f3n de la eficiencia.<\/p>\n<p>Las transparencias usadas en la clase son las paginas 1 a 21 del <a href=\"http:\/\/www.cs.us.es\/~jalonso\/cursos\/i1m-15\/temas\/tema-9.html\">tema 9<\/a>:<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/es.slideshare.net\/slideshow\/embed_code\/key\/bpjo4iP4KhnPbT\" width=\"595\" height=\"485\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;\" allowfullscreen> <\/iframe><\/p>\n<div style=\"margin-bottom:5px\">  <\/div>\n","protected":false},"excerpt":{"rendered":"<p>En clase de hoy de Inform\u00e1tica de 1\u00ba del Grado en Matem\u00e1ticas se ha estudiado la definici\u00f3n de nuevos tipos de datos y de funciones sobre dichos tipos. Concretamente, se ha visto c\u00f3mo definir tipos usando type, c\u00f3mo definir funciones con dominio o rango en tipos definidos usando type, c\u00f3mo definir tipos usando data, c\u00f3mo&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[250],"tags":[270,310],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/5162"}],"collection":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/comments?post=5162"}],"version-history":[{"count":2,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/5162\/revisions"}],"predecessor-version":[{"id":5164,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/5162\/revisions\/5164"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/media?parent=5162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/categories?post=5162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/tags?post=5162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}