Skip to content

Instantly share code, notes, and snippets.

@starsinmypockets
Created July 31, 2017 14:55
Show Gist options
  • Select an option

  • Save starsinmypockets/41366ff0b8a11ab614b1df3600acc07c to your computer and use it in GitHub Desktop.

Select an option

Save starsinmypockets/41366ff0b8a11ab614b1df3600acc07c to your computer and use it in GitHub Desktop.
module Main exposing (..)
import Debug exposing (log)
findMin list =
List.map toString list
|> List.sort
|> log "ll"
|> List.foldr (++) ""
|> String.toInt
|> log "min"
findMax list =
List.map toString list
|> log "list"
|> List.foldl (++) ""
|> String.toInt
|> log "max"
debug =
( findMin [ 79, 82, 34, 83, 69 ], findMax [ 79, 82, 34, 83, 69 ] )
|> log "debug"
debug2 =
( findMin [ 420, 34, 19, 71, 341 ], findMax [ 420, 34, 19, 71, 341 ] )
|> log "debug2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment