When bitwise-ior or bitwise-xor is called with zero arguments they should return 0, which acts as identity for these procedures. The example below should return 42:
Vicare Scheme version 0.3d1, 64-bit
Revision devel/eb362bf709a6d7d0da3bcfdf4c126ea6898137c1
Build 2013-08-20
Copyright (c) 2006-2010 Abdulaziz Ghuloum and contributors
Copyright (c) 2011-2013 Marco Maggi
When bitwise-ior or bitwise-xor is called with zero arguments they should return 0, which acts as identity for these procedures. The example below should return 42:
Vicare Scheme version 0.3d1, 64-bit Revision devel/eb362bf709a6d7d0da3bcfdf4c126ea6898137c1 Build 2013-08-20
Copyright (c) 2006-2010 Abdulaziz Ghuloum and contributors Copyright (c) 2011-2013 Marco Maggi
vicare> (define (identity x) (bitwise-ior x (bitwise-ior))) vicare> (identity 42) $1 = -1