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/s

(alphanumeric? s)

Returns true if a string consists only of alphanumeric characters.

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

at-leastclj/s

Alias for gte

Alias for gte
raw docstring

at-mostclj/s

Alias for lte

Alias for lte
raw docstring

betweenclj/s

(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).
raw docstring

decimal-string?clj/s

(decimal-string? s)

Returns true if the string represents a decimal number.

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

digits?clj/s

(digits? s)

Returns true if a string consists only of numerical digits.

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

email-address?clj/s

(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.
raw docstring

gtclj/s

(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.
raw docstring

gteclj/s

(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.
raw docstring

integer-string?clj/s

(integer-string? s)

Returns true if the string represents an integer.

Returns true if the string represents an integer.
raw docstring

ltclj/s

(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.
raw docstring

lteclj/s

(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.
raw docstring

matchesclj/s

(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.
raw docstring

max-lengthclj/s

(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.
raw docstring

min-lengthclj/s

(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.
raw docstring

overclj/s

Alias for gt

Alias for gt
raw docstring

present?clj/s

(present? x)

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

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

underclj/s

Alias for lt

Alias for lt
raw docstring

url?clj/s≠

(url? s)
clj

Returns true if the string is a valid URL.

Returns true if the string is a valid URL.
raw docstring

valid-email-domain?clj

Returns true if the domain of the supplied email address has a MX DNS entry.

Returns true if the domain of the supplied email address has a MX DNS entry.
raw docstring

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

× close