[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Predicate for a string representing an integer
From: |
Urs Liska |
Subject: |
Predicate for a string representing an integer |
Date: |
Tue, 30 May 2017 10:47:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi all,
I've found this function in my code:
% Returns true if obj is a string representation of an integer
#(define (integer-string? obj)
(integer? (string->number obj)))
and I have the impression there should be a better way with more
built-in functionality to do it.
Any suggestions, or should I simply leave it at that?
Urs
--
address@hidden
https://openlilylib.org
http://lilypondblog.org
- Predicate for a string representing an integer,
Urs Liska <=