summaryrefslogtreecommitdiff
path: root/examples/curry.m4
blob: 00997c3899fb6ab0d2ce09c6019deab7faaf167c (plain)
1
2
3
4
5
6
7
divert(`-1')
# curry(macro, args)
# Expand to a macro call that takes one argument, then invoke
# macro(args, extra).
define(`curry', `$1(shift($@,)_$0')
define(`_curry', ``$1')')
divert`'dnl