Closed llaisdy closed 4 years ago
nb I can defined sum
, but I'd like to know how to find & import library functions.
> sum = foldl (+) 0
> sum xs
45
we will add mod soon
@laisdy We have added Project Layout in README.md. This might help you.
@EMQ-YangM Thanks - very helpful
@EMQ-YangM @emqplus @goldimax so, very much a work-in-progress? I've been using the release from homebrew, but it might be better if I cloned this repo and compiled from source?
Actually, mod
(modulo) in erlang is rem
, which you have:
> import Data.Ring
> rem 9 2
1
> 9 `rem` 2
1
Is there something wrong with my set up?
I get similar error with eg
9 mod 2
.Same error in the repl and in a module. Same error if I
import {Prelude, Data.Foldable, ...}
.Keen to start using Hamler properly, even if it is not complete.