titus.P.Fcn

class titus.P.Fcn(params, ret)[source]

Bases: titus.P.Pattern

Matches titus.datatype.FcnType with a given sequence of parameter patterns and return pattern.

__init__(params, ret)
Parameters:
  • params (list of titus.P) – patterns for each of the slots in the function-argument’s signature (must have only one signature with no wildcards)
  • ret (titus.P) – pattern for the return type of the function-argument
params
ret