3 ms·
Range == set of outputs which the function can produce. In any language, a type defines a set of values and some semantics for manipulating those values. It s
by urbit 13y ago
Range == set of outputs which the function can produce.
In any language, a type defines a set of values and some semantics for manipulating those values. It so happens that our way of defining common sets is to build a function whose range is some useful set.
Actually any gene (ie, expression) has a product range. It doesn't even need to be a function. So the range of the constant
[%foo %bar]
whatever the subject is, is always [%foo %bar], ie, the pair [7.303.014 7.496.034].
- samatman 13y agoOutputs indeed. I forgot your country willingness to 'normalize' input. I suppose a bull can be a steer if you're willing to cut the balls off on the way into the pen. You're not a big believer in airbags, are ya.
- urbit 13y agoAn automatic castrator is an excellent safety device for your steer pen. Generally we don't actually use these functions unless we're normalizing foreign data. Then, we do. Because anyone on the Internets can send a bull into your steer pen...
- samatman 13y agoI guess I'm hoping there's some snipping noise that lets one distinguish the two cases.