Open DrCatman opened 1 year ago
from cadcad.blocks import deadend, indentity
annotations
def deadend(domain:List[Space], n_terminals=1:int )-> Block:
use
myblock = deadend([Real])
expected
myblock.domain = domain #input argument
myblock.codomain = [EmptySpace for _ in range(n_terminals)]
annotations
def identity(domain:List[Space], n_terminals=1:int )-> Block:
use
myblock = identity([Real])
expected
myblock.domain = domain #input argument
myblock.codomain = [Real for _ in range(n_terminals)]
pass in a space and non-negative integer
domain: space co-domain: same space, n copies