Substring/Top and tail: Difference between revisions

Content added Content deleted
(→‎{{header|J}}: links to dictionary pages)
Line 7: Line 7:


=={{header|J}}==
=={{header|J}}==
The monadic primitives <code>}.</code> (Behead) and <code>}:</code> (Curtail).
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>
'''Example use:'''<br>
Line 16: Line 16:
}:@}. 'brooms' NB. drop first and last items
}:@}. 'brooms' NB. drop first and last items
room</lang>
room</lang>

=={{header|JavaScript}}==
=={{header|JavaScript}}==