Discuss Scratch

DaSpudLord
Scratcher
1000+ posts

Non void functions

Support for this-
define custom block
...
return [] :: custom cend
But you can workaround it with this-
define custom block
...
set [Output v] to []
Prinseskat
Scratcher
1000+ posts

Non void functions

Support, but this is a duplicate: https://scratch.mit.edu/discuss/topic/20661/
PieCraftTV
Scratcher
7 posts

Non void functions

Cool! This is so convenient. Support!
when green flag clicked
I like pie!
aidenawesome
Scratcher
18 posts

Non void functions

support!
+1!

define (x::custom-arg) factorial::ring
if <(x) = [0]> then
return (1)::custom cap
else
return ((x) * (((x) - (1)) factorial))::custom cap
end
KJRYoshi07
Scratcher
1000+ posts

Non void functions

aidenawesome wrote:

support!
+1!

define (x::custom-arg) factorial::ring
if <(x) = [0]> then
return (1)::custom cap
else
return ((x) * (((x) - (1)) factorial))::custom cap
end
Why do you support?

Powered by DjangoBB