I challenge any moral (fast/loose) reasoner to give a #scala impl of [A](List[A] => Int) that is not a constant, nor a function of length.
@wbillingsley You used equals which violates parametricity and so is immoral.
-
-
@dibblego pedantically only != on Ints. “Immortality” is in List.indexOf. And essentially in Scala spec (equals:Any=>Boolean defined on Any) -
@dibblego (blast my Mac’s autocorrect, that should read “immorality”. Though these things do seem to live on once they’re around…)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.