anonymous function in unityscript?

I’m translating some code from csharp to unityscript and I’ve run into this. Is there any way to do an anonymous function in unityscript?

// add some event handlers
            _videoTexture.videoDidStartEvent = () =>
            {
                Debug.Log( "Video one started" );
            };
            _videoTexture.videoDidFinishEvent = () =>
            {
                // when the video finishes if we are not set to loop this instance is no longer valid
                Debug.Log( "Video one finished" );
            };

IIRC, you can do:

_videoTexture.videoDidStartEvent = function()
{
  Debug.Log("Video one started");
};

_videoTexture.videoDidFinishEvent = function()
{
  // when the video finishes if we are not set to loop this instance is no longer valid
  Debug.Log("Video one finished");
};