mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-13 22:29:35 +03:00
3063e7e57f
added `fs_p`, `fpps_p`, etc and the `StackDecode` typeclass, which describes how to decode a value which needs access to a stack. builtin function adapter helper naming convention guide: `u` = unison unboxed `b` = Scala Boolean as unboxed booleana `l` = Scala Long as unboxed int64 `n` = Scala Int as unboxed uint64 `d` = Scala Double as unboxed float `p` = "polymorphic", some generic type not known to be unboxed `s` = "stack decode", some input parameter requiring access to the runtime stack to be decoded `z` = laZy, a result type for which the decompiled form has to be recorded with each operation, as opposed to being derived from a Value. `p` is used when a function accepts a an `Env => Stream` that will not be consumed `s` is used when a function accepts a `Stream` (no `Env`) that will be consumed `z` is used when a function returns a `Stream` add pretty printing for `Tuple` and `Sequence`
5 lines
92 B
Plaintext
5 lines
92 B
Plaintext
a |> f = f a
|
|
Stream.from-uint64 0
|
|
|> Stream.take 10000
|
|
|> Stream.fold-left 0 (+_UInt64)
|