RosettaCodeData/Task/First-class-functions/Axiom/first-class-functions-2.axiom

8 lines
240 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
)abbrev package TESTP TestPackage
TestPackage(T:SetCategory) : with
_*: (List((T->T)),List((T->T))) -> (T -> List T)
== add
import MappingPackage3(T,T,T)
fs * gs ==
((x:T):(List T) +-> [(f*g) x for f in fs for g in gs])