Substring/Top and tail: Difference between revisions
→{{header|J}}: links to dictionary pages
(→{{header|J}}: Add J) |
(→{{header|J}}: links to dictionary pages) |
||
Line 7:
=={{header|J}}==
The monadic primitives <code>}.</code> ([http://http://www.jsoftware.com/help/dictionary/d531.htm Behead]) and <code>}:</code> ([http://www.jsoftware.com/help/dictionary/d532.htm Curtail]) are useful for this task.
'''Example use:'''<br>
Line 16:
}:@}. 'brooms' NB. drop first and last items
room</lang>
=={{header|JavaScript}}==
|