&
in Haskell! It's probably not idiomatic, but it is nicer than $
imo.
(a).b
is an invalid module expression? I guess its kind of weird, but i'm trying to import a parametric module and apply it simultaneously
so i have something like
a.fut:
module a (T: integer) = {
let add (a: T.t) (b: T.t): T.t = a + b
}
and then in b.fut:
module a_u8 = (import "a").a u8
(x).y
is a special expression in the term language (because x.y
is handled as a single lexeme), and I guess we just never added it similarly to the module language.
reduce_by_index
), for which Futhark has a high-quality implementation.