talks.[otug|minneapolis]-talk: add the <iota> constructor to numbers
parent
69f6844fea
commit
9a801c3cfe
|
@ -105,7 +105,7 @@ CONSTANT: minneapolis-slides
|
||||||
}
|
}
|
||||||
"It is slow:"
|
"It is slow:"
|
||||||
{ $code
|
{ $code
|
||||||
"35 [ fib ] map ."
|
"35 <iota> [ fib ] map ."
|
||||||
}
|
}
|
||||||
"Let's profile it!"
|
"Let's profile it!"
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ CONSTANT: minneapolis-slides
|
||||||
}
|
}
|
||||||
"It is faster:"
|
"It is faster:"
|
||||||
{ $code
|
{ $code
|
||||||
"35 [ fib ] map ."
|
"35 <iota> [ fib ] map ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{ $slide "The Factor UI"
|
{ $slide "The Factor UI"
|
||||||
|
|
|
@ -66,7 +66,7 @@ CONSTANT: otug-slides
|
||||||
{ $slide "Combinators"
|
{ $slide "Combinators"
|
||||||
{ "A " { $emphasis "combinator" } " is a word taking quotations as input" }
|
{ "A " { $emphasis "combinator" } " is a word taking quotations as input" }
|
||||||
{ "Used for control flow, data flow, iteration" }
|
{ "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 } }
|
{ "Control flow: " { $link if } ", " { $link when } ", " { $link unless } ", " { $link cond } }
|
||||||
{ "Iteration: " { $link map } ", " { $link filter } ", " { $link all? } ", ..." }
|
{ "Iteration: " { $link map } ", " { $link filter } ", " { $link all? } ", ..." }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue