Back

<<- (clj)

(source)

function

(<<- s) (<<- re s)
Unindent multiline text. Uses either a supplied regex or the shortest beginning-of-line to non-whitespace distance DEPRECTED: replaced by `uninindent`

Examples

jimmyhmiller/PlayGround
(ns account-number.core-test
  (:require [clojure.test :refer :all]
            [account-number.main :as main]
            [account-number.core :as core]
            [clojure.java.io :as io]
            [cuerdas.core :refer [<<-]])
  (:import [java.lang AssertionError]))

(def scenario-1-answers
  (<<- "000000000
        111111111
        222222222
        333333333
        444444444
        555555555
        666666666
        777777777
        888888888
        999999999
        123456789"))

(def scenario-3-answers
  (<<- "000000051
        49006771? ILL
        1234?678? ILL
        664371495 ERR"))

(def zero-ascii 
  (first 
   (core/split-into-rows
    (<<- " _ 
          | |
          |_|"))))

(def eight-zero-ascii
  (first 
   (core/split-into-rows
    (<<- " _  _ 
          |_|| |
          |_||_|"))))