path/basename
pathSummary
Return the path without the directory part
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($get/val 'last-index-of)) ( 2 ($get/val 'path)) ( 4 ($push/val /)) ( 6 ($apply 2)) ( 8 ($det/val 'last-slash)) ( 10 ($drop)) ( 11 ($get/val 'last-slash)) ( 13 ($push/int/byte 0)) ( 15 ($>=)) ( 16 ($jf* 17)) ( 19 ($get/val 'string/cut)) ( 21 ($get/val 'path)) ( 23 ($push/int/byte 1)) ( 25 ($get/val 'last-slash)) ( 27 ($add)) ( 28 ($apply 2)) ( 30 ($jmp* 5)) ( 33 ($get/val 'path)) ( 35 ($ret))