I have to make a divisors block in which the block lists all the divisors of a number input using the keep block. my block keeps reporting back a blank list. This is what I have done so far:
Your IS _ DIVISIBLE BY _ block takes two numbers as input, right?
NUMBERS FROM reports a list, so you shouldn't be using it that way.
How does KEEP work? It takes a predicate function (such as IS DIVISIBLE BY) as one input and a list as the other input.
You want all the numbers between 1 and NUM that NUM is divisible by. So start over again, and figure out how to give KEEP inputs that'll do what you want.
He is expecting his block to be hyper
@wyatt.brodbar Scalar->hyper in the APL library please
Maybe, but he shouldn't be, because he's a BJC student, and the curriculum predates hyperblocks.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.