<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: between code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 08:04:03 GMT</pubDate>
    <description>DZone Snippets: between code</description>
    <item>
      <title>Is a value between two other values?</title>
      <link>http://snippets.dzone.com/posts/show/1607</link>
      <description>&lt;code&gt;&lt;br /&gt;between?: func [&lt;br /&gt;    value bound-1 bound-2&lt;br /&gt;    /exclusive&lt;br /&gt;    /local low-bound high-bound&lt;br /&gt;][&lt;br /&gt;    set [low-bound high-bound] sort reduce [bound-1 bound-2]&lt;br /&gt;    either exclusive [&lt;br /&gt;        all [(value &gt; low-bound) (value &lt; high-bound)]&lt;br /&gt;    ][&lt;br /&gt;        ;-- Inclusive comparison&lt;br /&gt;        all [(value &gt;= low-bound) (value &lt;= high-bound)]&lt;br /&gt;    ]&lt;br /&gt;]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 01 Mar 2006 03:52:31 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1607</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
    <item>
      <title>limit - limit a value between boundary values</title>
      <link>http://snippets.dzone.com/posts/show/1605</link>
      <description>&lt;code&gt;&lt;br /&gt;limit: func [&lt;br /&gt;    "Make sure val falls between lower and upper bounds, inclusive"&lt;br /&gt;    val lower upper&lt;br /&gt;][&lt;br /&gt;    max min val upper lower&lt;br /&gt;]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 01 Mar 2006 03:49:08 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1605</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
    <item>
      <title>limit function - limit a value within bounds</title>
      <link>http://snippets.dzone.com/posts/show/1540</link>
      <description>&lt;code&gt;&lt;br /&gt;limit: func [&lt;br /&gt;    "Make sure val falls between lower and upper bounds, inclusive"&lt;br /&gt;    val lower upper&lt;br /&gt;][&lt;br /&gt;    max min val upper lower&lt;br /&gt;]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 21 Feb 2006 07:03:41 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1540</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
