Check that file exists: Difference between revisions

m
(→‎{{header|AppleScript}}: Added an Applescript version)
Line 129:
-- The last four are returned by `doesDirectoryExist`,
-- which returns yields false for simple files, and true for directories.
end run
 
Line 185:
-- (<*> | ap) :: [(a -> b)] -> [a] -> [b]
on ap(fs, xs)
set {lngFsintFs, lngXsintXs} to {length of fs, length of xs}
set lst to {}
repeat with i from 1 to lngFsintFs
tell mReturn(item i of fs)
repeat with j from 1 to lngXsintXs
set end of lst to |λ|(contents of (item j of xs))
end repeat
9,658

edits