LISP styled F# :-)

I’m loveing it!

let canonicalize_headers (headers: WebHeaderCollection) =
    String.concat "" (
        Array.map (fun (x : string) -> String.Format("{0}:{1}\n", x.ToLower(), headers.Get(x))) (
            Array.sort (
                Array.filter (fun (x : string) -> x.StartsWith("x-ms-")) headers.AllKeys
            )
        )
    )

Метки: , , , ,

Добавить комментарий

Fill in your details below or click an icon to log in:

Логотип WordPress.com

You are commenting using your WordPress.com account. Log Out / Изменить )

Фотография Twitter

You are commenting using your Twitter account. Log Out / Изменить )

Фотография Facebook

You are commenting using your Facebook account. Log Out / Изменить )

Connecting to %s


Follow

Get every new post delivered to your Inbox.