Skip to content

(num)

numeric literals

clojure
(num val?)

Where:

  1. val: numeric value to match *

Behavior

  • Matches integer literals only; floats are not matched.

Examples

Find timeouts between 500 and 2000 milliseconds.

clojure
(num 500..2000)

Selects in lines { 1, 2 } but not in { 3 }:

rust
const TIMEOUT_MS: u64 = 500;
const RETRY_MS: u64 = 1500;
const WAIT_MS: u64 = 5000;

Locate hardcoded HTTP 4xx status codes.

clojure
(num 400..499)

Selects in lines { 1 } but not in { 4 }:

rust
if status == 404 {
  warn!("not found");
}
if status == 500 {
  warn!("error");
}

Arguments

val

• Number • Numeric Range

Does NOT support: CompositionFree-form SelectionRefinementReplacement

Copyright © 2022-present Semantic Works, Inc.