Source/Packages

Std.Word

packages/foundation/standard/src/Std/Word.alpha

1,783 lines192 declarations64.2 KiBSHA-256 27bf8c3f30ee

def · lines 645–651

stdI32ToI8

Full file
narrowing keeps the low bytes (wrapping semantics; a checked narrow is later)
645def stdI32ToI8 =
646  (lambda unrestricted value : (family StdI32) .
647    (eliminate
648      ModelWord32
649      (lambda unrestricted current : (family ModelWord32) . (family StdI8))
650      (stdI32ToWord value)
651      (branch ModelWord32Value b0 b1 b2 b3 . (stdI8FromByte b0))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.