Partial function application: Difference between revisions
m
→{{header|AppleScript}}: (edited a name, slightly rearranged the test)
m (→{{header|AppleScript}}: (edited a name, slightly rearranged the test)) |
|||
Line 151:
on run
set fsf1 to |λ|(f1)
set
end tell
{fsf1's
fsf1's |λ|({2, 4, 6, 8}), ¬
fsf2's |λ|({2, 4, 6, 8})}
end run
Line 166 ⟶ 169:
on curry(f)
script
on
script
on
end
end script
end
end script
end curry
Line 182 ⟶ 185:
set lst to {}
repeat with i from 1 to lng
set end of lst to
end repeat
return lst
Line 195 ⟶ 198:
else
script
property
end script
end if
|