Given an arbitrary filename string:
e.g. "script.m", "textfile.txt", etc.
write a function that has the following behaviour:
dropExtension /@ {"script.m", "textfile.txt"}(* {"script", "textfile"} *)
Given an arbitrary filename string:
e.g. "script.m", "textfile.txt", etc.
write a function that has the following behaviour:
dropExtension /@ {"script.m", "textfile.txt"}(* {"script", "textfile"} *)