Skip to content

Instantly share code, notes, and snippets.

@pedro-w
Last active June 29, 2020 06:29
Show Gist options
  • Save pedro-w/5e72c032550445de2f14e16f53971f4f to your computer and use it in GitHub Desktop.
Save pedro-w/5e72c032550445de2f14e16f53971f4f to your computer and use it in GitHub Desktop.
// This outputs a/
define function one ()
let a = as (<directory-locator>, "a/");
let b = as (<file-locator>, "b");
let c = merge-locators(a, b);
format-out("%s\n", as(<string>, c));
end;
// This outputs a/b
define function two ()
let a = as (<directory-locator>, "a/");
let b = as (<file-locator>, "b");
let c = merge-locators(b, a);
format-out("%s\n", as(<string>, c));
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment