talks.[otug|minneapolis]-talk: add the <iota> constructor to numbers
parent
69f6844fea
commit
9a801c3cfe
|
@ -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"
|
||||
|
|
|
@ -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? } ", ..." }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue