String case: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
→‎{{header|AppleScript}}: Updated primitives, and simplified test, replacing map with `ap` <*>
Hout (talk | contribs)
m →‎{{header|AppleScript}}: minor update of one primitive (ap <*>)
Line 370:
-- (<*> | ap) :: [(a -> b)] -> [a] -> [b]
on ap(fs, xs)
set {intFsnf, intXsnx} to {length of fs, length of xs}
set lst to {}
repeat with i from 1 to intFsnf
tell mReturn(item i of fs)
repeat with j from 1 to intXsnx
set end of lst to |λ|(contents of (item j of xs))
end repeat