
{{alias}}( x, dim, writable )
    Returns an array containing a truncated view of an input ndarray and a view
    of the first element(s) along a specified dimension.

    Parameters
    ----------
    x: ndarray
        Input array. Must have one or more dimensions.

    dim: integer
        Dimension along which to perform the operation. If provided an integer
        less than zero, the dimension index is resolved relative to the last
        dimension, with the last dimension corresponding to the value `-1`.

    writable: boolean
        Boolean indicating whether a returned ndarray should be writable. This
        parameter only applies to ndarray constructors which support read-only
        instances.

    Returns
    -------
    out: Array<ndarray>
        An array containing a truncated view of an input ndarray and a view of
        the first element(s) along a specified dimension.

    Examples
    --------
    > var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] )
    <ndarray>
    > var y = {{alias}}( x, 1, false )
    [ <ndarray>, <ndarray> ]
    > {{alias:@stdlib/ndarray/to-array}}( y[0] )
    [ [ 2 ], [ 4 ] ]
    > {{alias:@stdlib/ndarray/to-array}}( y[1] )
    [ [ 1 ], [ 3 ] ]

    See Also
    --------
