Created
July 31, 2017 14:55
-
-
Save starsinmypockets/41366ff0b8a11ab614b1df3600acc07c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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