specter

Latest version: 1.1.3
phil 2019-01-22T13:14:25.038900Z

Hey, all. In discovery phase and stuck on one already: given [["1" "2"] ["3" "4"] [nil "6"]], how would I get back 6? In other words find seq where the first value is nil and return the second value?

schmee 2019-01-22T13:20:34.039300Z

@phil here is one way to do it:

user=> a
[["1" "2"] ["3" "4"] [nil "6"]]

user=> (select-one [ALL (selected? FIRST (pred= nil)) 1] a)
"6"

phil 2019-01-22T13:21:53.039500Z

@schmee Thanks.