<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivan Čukić &#187; Qt Functional</title>
	<atom:link href="http://ivan.fomentgroup.org/blog/category/qt-functional/feed/" rel="self" type="application/rss+xml" />
	<link>http://ivan.fomentgroup.org/blog</link>
	<description>Free Software Developer and Enthusiast</description>
	<lastBuildDate>Sat, 19 May 2012 20:47:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Qt Functional [2]</title>
		<link>http://ivan.fomentgroup.org/blog/2011/08/02/qt-functional-2/</link>
		<comments>http://ivan.fomentgroup.org/blog/2011/08/02/qt-functional-2/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 17:09:55 +0000</pubDate>
		<dc:creator><span property="dc:creator" resource="http://ivan.fomentgroup.org/blog/2011/08/02/qt-functional-2/">Ivan Čukić</span></dc:creator>
				<category><![CDATA[Qt Functional]]></category>
		<category><![CDATA[planetKDE]]></category>
		<category><![CDATA[QtFunctional]]></category>

		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=1150</guid>
		<description><![CDATA[A teaser, again. This time with std:: stuff instead of Qt. Why? Because I can list &#60;string&#62; inputList; // ... do something to the inputList ... string first, second; list &#60;string&#62; outputList; (QfTuple &#124; first, second, outputList) = inputList.begin(); // or just (and it is safer) (QfTuple &#124; first, second, outputList) = inputList; // now, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ivan.fomentgroup.org/blog/wp-content/uploads/2011/08/logo1.png" alt="Qt Functional" title="Qt Functional" width="429" height="96" class="alignright size-full wp-image-1162" /></p>
<p>A teaser, again. This time with std:: stuff instead of Qt. Why? Because I can <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> </p>
<pre>
<span style="color:green">list</span> &lt;<span style="color:green">string</span>&gt; inputList;

<span style="color:gray">// ... do something to the inputList ...</span>

<span style="color:green">string</span> first, second;
<span style="color:green">list</span> &lt;<span style="color:green">string</span>&gt; outputList;

(QfTuple | first, second, outputList)
                            = inputList.begin();

<span style="color:gray">// or just (and it is safer)</span>

(QfTuple | first, second, outputList)
                            = inputList;

<span style="color:gray">// now, the variables first and second contain
// the first two elements of the inputList, and
// outputList contains the rest</span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ivan.fomentgroup.org/blog/2011/08/02/qt-functional-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Qt Functional</title>
		<link>http://ivan.fomentgroup.org/blog/2011/07/06/functions/</link>
		<comments>http://ivan.fomentgroup.org/blog/2011/07/06/functions/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 21:58:46 +0000</pubDate>
		<dc:creator><span property="dc:creator" resource="http://ivan.fomentgroup.org/blog/2011/07/06/functions/">Ivan Čukić</span></dc:creator>
				<category><![CDATA[Qt Functional]]></category>
		<category><![CDATA[planetKDE]]></category>

		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=1133</guid>
		<description><![CDATA[Edit: Sorry for bumping this, WordPress seems to think changing a post title should publish it in RSS again QfStringList sentence; sentence &#60;&#60; "TZU" &#60;&#60; "Anticipate" &#60;&#60; "the" &#60;&#60; "difficult" &#60;&#60; "by" &#60;&#60; "managing" &#60;&#60; "the" &#60;&#60; "easy"; sentence .foldLeft(Functions::sum); // "TZUAnticipatethedifficultbymanagingtheeasy" sentence .map(QF_FUNCTION(QString, toUpper())); // ("TZU", "ANTICIPATE", "THE", "DIFFICULT", // "BY", "MANAGING", "THE", "EASY") [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> Sorry for bumping this, WordPress seems to think changing a post title should publish it in RSS again</strong></p>
<p><img src="http://ivan.fomentgroup.org/blog/wp-content/uploads/2011/08/logo1.png" alt="Qt Functional" title="Qt Functional" width="429" height="96" class="alignright size-full wp-image-1162" /></p>
<pre>
<span style="color: green">QfStringList</span> sentence;

sentence &lt;&lt; <span style="color: #4444cc">"TZU"</span>
         &lt;&lt; <span style="color: #4444cc">"Anticipate"</span>
         &lt;&lt; <span style="color: #4444cc">"the"</span>
         &lt;&lt; <span style="color: #4444cc">"difficult"</span>
         &lt;&lt; <span style="color: #4444cc">"by"</span>
         &lt;&lt; <span style="color: #4444cc">"managing"</span>
         &lt;&lt; <span style="color: #4444cc">"the"</span>
         &lt;&lt; <span style="color: #4444cc">"easy"</span>;

sentence
    .foldLeft(<span style="color: green">Functions::sum</span>);
<span style="color: gray">// "TZUAnticipatethedifficultbymanagingtheeasy"</span>

sentence
    .map(<span style="color: green">QF_FUNCTION</span>(QString, toUpper()));
<span style="color: gray">// ("TZU", "ANTICIPATE", "THE", "DIFFICULT",</span>
<span style="color: gray">//  "BY", "MANAGING", "THE", "EASY")</span>

sentence
    .map(<span style="color: green">QF_FUNCTION</span>(QString, length()));
<span style="color: gray">// (3, 10, 3, 9, 2, 8, 3, 4)</span>

sentence
    .map(<span style="color: green">QF_FUNCTION</span>(QString, length()))
    .foldLeft(<span style="color: green">Functions::sum</span>);
<span style="color: gray">// 42</span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ivan.fomentgroup.org/blog/2011/07/06/functions/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

