Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion path.carp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ As such, it is the inverse to [split](#split).")

(doc filename "gets the filename of the path `p` as a `(Maybe String)`.

It will return `Nothing` if an empty string is passed.")
For an empty path, the result is `Just` of an empty string, never `Nothing`.")
(defn filename [p] (Array.last &(split p)))
(doc basename "gets the basename of the path `p`.")
(defn basename [p]
Expand Down
Loading