RosettaCodeData/Task/Inverted-syntax/PARI-GP/inverted-syntax.pari

5 lines
115 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
fi(f, condition)=if(condition,f());
if(raining, print("Umbrella needed"))
fi(->print("Umbrella needed"), raining)