Substring/Top and tail: Difference between revisions
Content added Content deleted
m (→{{header|C++}}: lang tag for C++ is cpp) |
|||
Line 357: | Line 357: | ||
match String.length str with |
match String.length str with |
||
| 0 | 1 | 2 -> "" |
| 0 | 1 | 2 -> "" |
||
| |
| len -> String.sub str 1 (len - 2) |
||
let () = |
let () = |