]> gitweb.factorcode.org Git - factor.git/commitdiff
talks.[otug|minneapolis]-talk: add the <iota> constructor to numbers
authorAlexander Iljin <ajsoft@yandex.ru>
Thu, 5 Oct 2017 19:29:29 +0000 (22:29 +0300)
committerAlexander Iljin <ajsoft@yandex.ru>
Mon, 9 Oct 2017 08:23:31 +0000 (11:23 +0300)
extra/talks/minneapolis-talk/minneapolis-talk.factor
extra/talks/otug-talk/otug-talk.factor

index bfdd8e253e90fe9f8b04397e93702592da1c74b8..4cae92b4a7d9128ae354cc0079e10b0e6b735e6c 100644 (file)
@@ -105,7 +105,7 @@ CONSTANT: minneapolis-slides
         }
         "It is slow:"
         { $code
-            "35 [ fib ] map ."
+            "35 <iota> [ fib ] map ."
         }
         "Let's profile it!"
     }
@@ -126,7 +126,7 @@ CONSTANT: minneapolis-slides
         }
         "It is faster:"
         { $code
-            "35 [ fib ] map ."
+            "35 <iota> [ fib ] map ."
         }
     }
     { $slide "The Factor UI"
index be2599853563236c23b7bb5bcf1039e6d8ce0b64..89beedf7cdd2bdda56406cb02e058af1ddfd1119 100644 (file)
@@ -66,7 +66,7 @@ CONSTANT: otug-slides
     { $slide "Combinators"
         { "A " { $emphasis "combinator" } " is a word taking quotations as input" }
         { "Used for control flow, data flow, iteration" }
-        { $code "100 [ 5 mod 3 = [ \"Fizz!\" print ] when ] each" }
+        { $code "100 <iota> [ 5 mod 3 = [ \"Fizz!\" print ] when ] each" }
         { "Control flow: " { $link if } ", " { $link when } ", " { $link unless } ", " { $link cond } }
         { "Iteration: " { $link map } ", " { $link filter } ", " { $link all? } ", ..." }
     }