Skip to content

Instantly share code, notes, and snippets.

// Success response
{
  // Document's primary data - resource or collection of resources targeted by request
  // (a.k.a. - either object or array of objects)

  // Single resouce variant (null in case it is not available)
  data: {
    // Required
    id: 'xyz' // Must be string - not required when the resource object originates at the client
@ondrejsevcik
ondrejsevcik / elm-roman-numerals-kata.elm
Created October 22, 2016 19:22
Roman numerals kata in Elm
import Html exposing (..)
--Helper function from elm-list-extra
find : (a -> Bool) -> List a -> Maybe a
find predicate list =
case list of
[] ->
Nothing
first::rest ->