Miran Lipovača
Autor de Learn You a Haskell for Great Good! A Beginner's Guide
Sobre El Autor
Obras de Miran Lipovača
Etiquetado
Conocimiento común
- Nombre canónico
- Lipovača, Miran
- Género
- male
- Nacionalidad
- Slovenia
Miembros
Reseñas
Listas
También Puede Gustarte
Estadísticas
- Obras
- 2
- Miembros
- 320
- Popularidad
- #73,923
- Valoración
- 4.0
- Reseñas
- 5
- ISBNs
- 6
- Idiomas
- 2
This time around? Well, everything still went sideways, but in a way that made sense?
moveKnight :: KnightPos -> [KnightPos]
moveKnight (c,r) = do
⠀⠀⠀⠀(c',r') ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀,(c 1,r-2),(c 1,r 2),(c-1,r-2),(c-1,r 2)
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]
⠀⠀⠀⠀guard (c' `elem` [1..8] && r' `elem` [1..8])
⠀⠀⠀⠀return (c',r')
Sure.
In any case, if you're into programming, particularly functional programming, you should give Haskell a chance. It probably won't become your default goto language, but it might just give you a new way to think, which is always worthwhile. And [b:Learn You a Haskell for Great Good!|6593810|Learn You a Haskell for Great Good!|Miran Lipovača|https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1294497489l/6593810._SX50_.jpg|6787531] is a great way to do that. It's well written and funny, bringing you through at least enough of the language to decide just how much more you want to dive in.
I think the primary thing missing is any solid, practical real world examples. Mathematical tricks and trivial problems are all well and good, but if that's all you can write in a language, you're not going to be doing much with it.
Still worth a read.… (más)