Giter VIP home page Giter VIP logo

programacao-funcional's Introduction

O conteúdo deste repositório está disponível para consulta interativa em https://pf.sofiars.xyz.


Programacao-Funcional

Contém todas as fichas relativas à cadeira de Programação Funcional do ano letivo 2018/19, para além de resoluções de testes e exames de anos anteriores.

programacao-funcional's People

Contributors

risingfisan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

programacao-funcional's Issues

Erro em 50questoes.hs

Erro na função vizinhos :

Chamada da função myvizinhos (linha 408 e 409) em vez de vizinhos'

vizinhos' :: Posicao -> [Posicao] -> [Posicao]
vizinhos' _ [] = []
vizinhos' (Pos x y) ((Pos xv yv):ps) = if abs (x - xv) == 1 && y == yv || abs (y - yv) == 1 && x == xv
then (Pos xv yv):myvizinhos (Pos x y) ps
else myvizinhos (Pos x y) ps

Found a bug on exercise 45

I found a bug where the variable "ms" is used instead of "t". This causes the program to crash because "ms" is not defined anywhere.
I am forwarding the answer I think is right.

catMaybes :: [Maybe a] -> [a] catMaybes [] = [] catMaybes ((Just a):t) = a:catMaybes t catMaybes ((Nothing):t) = catMaybes t

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.