Skip to content

Instantly share code, notes, and snippets.

@msp
Last active November 18, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msp/4b74694913e2d4141ca6e03b9c001154 to your computer and use it in GitHub Desktop.
Save msp/4b74694913e2d4141ca6e03b9c001154 to your computer and use it in GitHub Desktop.
ChangeStreamName uuid newName ->
let
select existingStream =
if existingStream.uuid == uuid then
{ existingStream | name = newName }
else
existingStream
in
-- Debug.log ("newName: " ++ newName ++ " uuid: " ++ uuid)
((List.map select streams), Cmd.none)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment