<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Functions on CyberSpy</title>
    <link>https://cyberspy.io/tags/functions/</link>
    <description>Recent content in Functions on CyberSpy</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 19 Mar 2018 20:21:13 -0400</lastBuildDate>
    <atom:link href="https://cyberspy.io/tags/functions/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Pathocaml - Getting Wacky with Functions And Polymorphism</title>
      <link>https://cyberspy.io/code/pathocaml/</link>
      <pubDate>Mon, 19 Mar 2018 20:21:13 -0400</pubDate>
      <guid>https://cyberspy.io/code/pathocaml/</guid>
      <description>&lt;h3 id=&#34;ocaml-on-the-fringes---you-can-do-that&#34;&gt;OCaml on the Fringes - You &lt;em&gt;can&lt;/em&gt; do that??&lt;/h3&gt;&#xA;&lt;p&gt;So, I got bored this afternoon and was contemplating why I was enjoying diving into OCaml more than say Elixir/Erlang for functional programming. The quality of the language that&amp;rsquo;s most captured my attention is the type system.&lt;/p&gt;&#xA;&lt;p&gt;When you start playing around with the type system in OCaml you can go from some basic definitions of user-defined types to some pretty cool looking constructs. Let&amp;rsquo;s start of with something pretty transparent and move into something that might actually melt your brain.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Let&#39;s Get Funky with the Camel</title>
      <link>https://cyberspy.io/articles/ocaml-func/</link>
      <pubDate>Fri, 09 Feb 2018 16:17:20 -0500</pubDate>
      <guid>https://cyberspy.io/articles/ocaml-func/</guid>
      <description>&lt;h2 id=&#34;how-many-ways-can-we-get-funky&#34;&gt;How many ways can we get Fun(ky)&lt;/h2&gt;&#xA;&lt;p&gt;In any programming paradigm, it&amp;rsquo;s critical to understand how we write functions - be they traditional imperative , anonymous , recursive, or functional. In this post, I will break down the different types of functions that you can write in &lt;strong&gt;OCaml&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s start by examining the imperative function. Here&amp;rsquo;s a simple function that prints out the phrase &lt;em&gt;Hello World!&lt;/em&gt; $n$ times, once on each line, and returns the value $n$ as its result.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
