Liking cljdoc? Tell your friends :D

valip.predicates

Predicates useful for validating input strings, such as ones from HTML forms. All predicates in this namespace are considered portable between different Clojure implementations.

Predicates useful for validating input strings, such as ones from HTML forms.
All predicates in this namespace are considered portable between different
Clojure implementations.
raw docstring

alphanumeric?clj

(alphanumeric? s)

Returns true if a string consists only of alphanumeric characters.

Returns true if a string consists only of alphanumeric characters.
sourceraw docstring

at-leastclj

Alias for gte

Alias for gte
sourceraw docstring

at-mostclj

Alias for lte

Alias for lte
sourceraw docstring

betweenclj

(between min max)

Creates a predicate function for checking whether a number is between two values (inclusive).

Creates a predicate function for checking whether a number is between two
values (inclusive).
sourceraw docstring

decimal-string?clj

(decimal-string? s)

Returns true if the string represents a decimal number.

Returns true if the string represents a decimal number.
sourceraw docstring

digits?clj

(digits? s)

Returns true if a string consists only of numerical digits.

Returns true if a string consists only of numerical digits.
sourceraw docstring

email-address?clj

(email-address? email)

Returns true if the email address is valid, based on RFC 2822. Email addresses containing quotation marks or square brackets are considered invalid, as this syntax is not commonly supported in practise. The domain of the email address is not checked for validity.

Returns true if the email address is valid, based on RFC 2822. Email
addresses containing quotation marks or square brackets are considered
invalid, as this syntax is not commonly supported in practise. The domain of
the email address is not checked for validity.
sourceraw docstring

gtclj

(gt n)

Creates a predicate function for checking if a value is numerically greater than the specified number.

Creates a predicate function for checking if a value is numerically greater
than the specified number.
sourceraw docstring

gteclj

(gte n)

Creates a predicate function for checking if a value is numerically greater than or equal to the specified number.

Creates a predicate function for checking if a value is numerically greater
than or equal to the specified number.
sourceraw docstring

integer-string?clj

(integer-string? s)

Returns true if the string represents an integer.

Returns true if the string represents an integer.
sourceraw docstring

ltclj

(lt n)

Creates a predicate function for checking if a value is numerically less than the specified number.

Creates a predicate function for checking if a value is numerically less
than the specified number.
sourceraw docstring

lteclj

(lte n)

Creates a predicate function for checking if a value is numerically less than or equal to the specified number.

Creates a predicate function for checking if a value is numerically less
than or equal to the specified number.
sourceraw docstring

matchesclj

(matches re)

Creates a predicate that returns true if the supplied regular expression matches its argument.

Creates a predicate that returns true if the supplied regular expression
matches its argument.
sourceraw docstring

max-lengthclj

(max-length max)

Creates a predicate that returns true if a string's length is less than or equal to the supplied maximum.

Creates a predicate that returns true if a string's length is less than or
equal to the supplied maximum.
sourceraw docstring

min-lengthclj

(min-length min)

Creates a predicate that returns true if a string's length is greater than or equal to the supplied minimum.

Creates a predicate that returns true if a string's length is greater than
or equal to the supplied minimum.
sourceraw docstring

overclj

Alias for gt

Alias for gt
sourceraw docstring

present?clj

(present? x)

Returns false if x is nil or blank, true otherwise.

Returns false if x is nil or blank, true otherwise.
sourceraw docstring

underclj

Alias for lt

Alias for lt
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close