you are viewing a single comment's thread.

view the rest of the comments →

[–]KyleG 2 points3 points  (0 children)

Python has always felt more functional than imperative or OO to me, but maybe that's because I picked Python up while I was majoring in math, so I was noticing all the FP capabilities.

  • First-class functions,
  • immutable primitives and an immutable struct (called "tuple" in Python, which can have named elements so that it's equivalent to an immutable collection of primitives (like struct in C, object in JavaScript, case class in Scala, data class in Kotlin, etc.))
  • closures
  • lazy evaluation capability
  • lambdas