Can you, please explain how to use map(char, ...) in *.spad ?
In interpreter: map(char, ["a", "b"])
(2) [a,b] Type: List(Character)
Further, compiling
)abbrev package DCHAR1 DChar1
DChar1() : with
f : () -> List Character
==
add
f() : List Character == [char "a", char "b"]
is all right.
But replacing [char "a", char "b"] with map(char, ["a", "b"])
leads to
----------------------------
...
$f:=
((((#:G13794 #) (|last| #) (|rest| #) (|first| #) ...)))
>> Apparent user error:
Cannot coerce G13794
of mode (Character)
to mode (Integer)
----------------------------
And I need to use map(char, l) for a long l :: List String.
Thanks,
------
Sergei
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.