talks.[otug|minneapolis]-talk: add the <iota> constructor to numbers

factor-shell
Alexander Iljin 2017-10-05 22:29:29 +03:00
parent 69f6844fea
commit 9a801c3cfe
2 changed files with 3 additions and 3 deletions

View 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"

View 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? } ", ..." }
}